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

Unified Diff: chrome/browser/ui/login/login_prompt_ui.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/browser/translate/translate_manager.cc ('k') | chrome/browser/ui/views/select_file_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/login/login_prompt_ui.cc
diff --git a/chrome/browser/ui/login/login_prompt_ui.cc b/chrome/browser/ui/login/login_prompt_ui.cc
index fb9b493c96ac69a451f99e01f0f288df6448cd84..987d870a3528d4ae182838772f9acb0b63a922fd 100644
--- a/chrome/browser/ui/login/login_prompt_ui.cc
+++ b/chrome/browser/ui/login/login_prompt_ui.cc
@@ -197,7 +197,7 @@ void LoginHandlerHtmlDelegate::OnDialogClosed(const std::string& json_retval) {
scoped_ptr<Value> parsed_value(base::JSONReader::Read(json_retval, false));
- if (!parsed_value.get() || !parsed_value->IsType(Value::TYPE_DICTIONARY)) {
+ if (!parsed_value.get() || !parsed_value->IsDictionary()) {
login_handler_->CancelAuth();
} else {
DictionaryValue* res = static_cast<DictionaryValue*>(parsed_value.get());
« no previous file with comments | « chrome/browser/translate/translate_manager.cc ('k') | chrome/browser/ui/views/select_file_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698