Remove implicit conversions from scoped_refptr to T* in components/policy/

This patch was generated by running the rewrite_scoped_refptr clang tool
on a Linux build.

BUG=110610

Review URL: https://codereview.chromium.org/506633004

Cr-Commit-Position: refs/heads/master@{#291928}


CrOS-Libchrome-Original-Commit: 28fa7ca627e09e89ba0290edc2ba2693c09497b7
diff --git a/components/policy/core/common/schema.cc b/components/policy/core/common/schema.cc
index 7359938..4493170 100644
--- a/components/policy/core/common/schema.cc
+++ b/components/policy/core/common/schema.cc
@@ -975,7 +975,7 @@
 
   scoped_refptr<const InternalStorage> storage =
       InternalStorage::ParseSchema(*dict, error);
-  if (!storage)
+  if (!storage.get())
     return Schema();
   return Schema(storage, storage->root_node());
 }
diff --git a/components/policy/core/common/schema_map.cc b/components/policy/core/common/schema_map.cc
index 19898c7..8485b41 100644
--- a/components/policy/core/common/schema_map.cc
+++ b/components/policy/core/common/schema_map.cc
@@ -105,7 +105,7 @@
 void SchemaMap::GetChanges(const scoped_refptr<SchemaMap>& older,
                            PolicyNamespaceList* removed,
                            PolicyNamespaceList* added) const {
-  GetNamespacesNotInOther(older, added);
+  GetNamespacesNotInOther(older.get(), added);
   older->GetNamespacesNotInOther(this, removed);
 }
 
diff --git a/components/policy/core/common/schema_map_unittest.cc b/components/policy/core/common/schema_map_unittest.cc
index 71dcc68..cf17910 100644
--- a/components/policy/core/common/schema_map_unittest.cc
+++ b/components/policy/core/common/schema_map_unittest.cc
@@ -96,7 +96,7 @@
 
 TEST_F(SchemaMapTest, Lookups) {
   scoped_refptr<SchemaMap> map = CreateTestMap();
-  ASSERT_TRUE(map);
+  ASSERT_TRUE(map.get());
   EXPECT_TRUE(map->HasComponents());
 
   EXPECT_FALSE(map->GetSchema(
diff --git a/components/policy/core/common/schema_registry_unittest.cc b/components/policy/core/common/schema_registry_unittest.cc
index 631c980..9d5fbd4 100644
--- a/components/policy/core/common/schema_registry_unittest.cc
+++ b/components/policy/core/common/schema_registry_unittest.cc
@@ -68,7 +68,7 @@
   SchemaRegistry registry;
   registry.AddObserver(&observer);
 
-  ASSERT_TRUE(registry.schema_map());
+  ASSERT_TRUE(registry.schema_map().get());
   EXPECT_FALSE(registry.schema_map()->GetSchema(
       PolicyNamespace(POLICY_DOMAIN_EXTENSIONS, "abc")));