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

Unified Diff: content/browser/gpu/gpu_blacklist.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nat_policy.cc Created 9 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: content/browser/gpu/gpu_blacklist.cc
diff --git a/content/browser/gpu/gpu_blacklist.cc b/content/browser/gpu/gpu_blacklist.cc
index 255ab4bea3f3af09811e7f1e6fc8d82367eba630..e4a6569881e7952f6fbe0e5cfaca4041746a1832 100644
--- a/content/browser/gpu/gpu_blacklist.cc
+++ b/content/browser/gpu/gpu_blacklist.cc
@@ -599,7 +599,7 @@ bool GpuBlacklist::LoadGpuBlacklist(const std::string& json_context,
bool current_os_only) {
scoped_ptr<Value> root;
root.reset(base::JSONReader::Read(json_context, false));
- if (root.get() == NULL || !root->IsType(Value::TYPE_DICTIONARY))
+ if (root.get() == NULL || !root->IsDictionary())
return false;
DictionaryValue* root_dictionary = static_cast<DictionaryValue*>(root.get());

Powered by Google App Engine
This is Rietveld 408576698