| 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());
|
|
|