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

Unified Diff: chrome/browser/ui/webui/sync_setup_handler.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/ui/webui/sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/sync_setup_handler.cc b/chrome/browser/ui/webui/sync_setup_handler.cc
index 8326fb9d092a44829ee960fb4f2819fa44501caa..1054d4cbb2b40a2942d6348c777b6f9eb295522e 100644
--- a/chrome/browser/ui/webui/sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/sync_setup_handler.cc
@@ -47,7 +47,7 @@ bool GetAuthData(const std::string& json,
std::string* captcha,
std::string* access_code) {
scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false));
- if (!parsed_value.get() || !parsed_value->IsType(Value::TYPE_DICTIONARY))
+ if (!parsed_value.get() || !parsed_value->IsDictionary())
return false;
DictionaryValue* result = static_cast<DictionaryValue*>(parsed_value.get());
@@ -62,7 +62,7 @@ bool GetAuthData(const std::string& json,
bool GetConfiguration(const std::string& json, SyncConfiguration* config) {
scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false));
- if (!parsed_value.get() || !parsed_value->IsType(Value::TYPE_DICTIONARY))
+ if (!parsed_value.get() || !parsed_value->IsDictionary())
return false;
DictionaryValue* result = static_cast<DictionaryValue*>(parsed_value.get());
@@ -141,7 +141,7 @@ bool GetConfiguration(const std::string& json, SyncConfiguration* config) {
bool GetPassphrase(const std::string& json, std::string* passphrase) {
scoped_ptr<Value> parsed_value(base::JSONReader::Read(json, false));
- if (!parsed_value.get() || !parsed_value->IsType(Value::TYPE_DICTIONARY))
+ if (!parsed_value.get() || !parsed_value->IsDictionary())
return false;
DictionaryValue* result = static_cast<DictionaryValue*>(parsed_value.get());
« no previous file with comments | « chrome/browser/ui/webui/print_preview_handler.cc ('k') | chrome/browser/web_resource/promo_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698