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

Unified Diff: chrome/browser/extensions/extension_settings_api.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review 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: chrome/browser/extensions/extension_settings_api.cc
diff --git a/chrome/browser/extensions/extension_settings_api.cc b/chrome/browser/extensions/extension_settings_api.cc
index 411d3b38c0980a3369cede0b39810267b02dff07..d03308d170c19b57f1ab9f8aedf81c0a5152597b 100644
--- a/chrome/browser/extensions/extension_settings_api.cc
+++ b/chrome/browser/extensions/extension_settings_api.cc
@@ -59,7 +59,7 @@ bool GetSettingsFunction::RunWithStorageImpl(
std::string as_string;
ListValue* as_list;
- if (input->IsType(Value::TYPE_NULL)) {
+ if (input->IsNull()) {
storage->Get(new StorageResultCallback(this));
} else if (input->GetAsString(&as_string)) {
storage->Get(as_string, new StorageResultCallback(this));
« no previous file with comments | « chrome/browser/extensions/extension_service_unittest.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698