Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(778)

Unified Diff: components/policy/core/common/schema.cc

Issue 506633004: Remove implicit conversions from scoped_refptr to T* in components/policy/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some more changes Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/schema.cc
diff --git a/components/policy/core/common/schema.cc b/components/policy/core/common/schema.cc
index 7359938f3d9acc9e17754cbe3b111e0c3ed1f9f1..44931707d2266e24af91ce2e1b902a0d5ea31375 100644
--- a/components/policy/core/common/schema.cc
+++ b/components/policy/core/common/schema.cc
@@ -975,7 +975,7 @@ Schema Schema::Parse(const std::string& content, std::string* error) {
scoped_refptr<const InternalStorage> storage =
InternalStorage::ParseSchema(*dict, error);
- if (!storage)
+ if (!storage.get())
return Schema();
return Schema(storage, storage->root_node());
}

Powered by Google App Engine
This is Rietveld 408576698