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

Unified Diff: chrome/common/net/gaia/gaia_oauth_client.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
« no previous file with comments | « chrome/common/json_value_serializer_unittest.cc ('k') | chrome/common/web_apps.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/net/gaia/gaia_oauth_client.cc
diff --git a/chrome/common/net/gaia/gaia_oauth_client.cc b/chrome/common/net/gaia/gaia_oauth_client.cc
index dd82e1104aece994bad7d46d9ba4d9f6ce6c9e06..eff4dc6bbd629d5cc40c192d9cd07e3d3eb8e65b 100644
--- a/chrome/common/net/gaia/gaia_oauth_client.cc
+++ b/chrome/common/net/gaia/gaia_oauth_client.cc
@@ -158,8 +158,7 @@ void GaiaOAuthClient::Core::HandleResponse(
if (response_code == RC_REQUEST_OK) {
scoped_ptr<Value> message_value(
base::JSONReader::Read(data, false));
- if (message_value.get() &&
- message_value->IsType(Value::TYPE_DICTIONARY)) {
+ if (message_value.get() && message_value->IsDictionary()) {
scoped_ptr<DictionaryValue> response_dict(
static_cast<DictionaryValue*>(message_value.release()));
response_dict->GetString(kAccessTokenValue, &access_token);
« no previous file with comments | « chrome/common/json_value_serializer_unittest.cc ('k') | chrome/common/web_apps.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698