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

Unified Diff: chrome/browser/ui/views/select_file_dialog.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/views/select_file_dialog.cc
diff --git a/chrome/browser/ui/views/select_file_dialog.cc b/chrome/browser/ui/views/select_file_dialog.cc
index 3673abdaa39c047e85eac7793eb80a511b325712..dfd5bbbe93b8a67509553df0a143b14c6f4361f0 100644
--- a/chrome/browser/ui/views/select_file_dialog.cc
+++ b/chrome/browser/ui/views/select_file_dialog.cc
@@ -230,7 +230,7 @@ void SelectFileDialogImpl::OnDialogClosed(FileBrowseDelegate* delegate,
if (!json.empty()) {
scoped_ptr<Value> value(base::JSONReader::Read(json, false));
- if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY)) {
+ if (!value.get() || !value->IsDictionary()) {
// Bad json value returned.
NOTREACHED();
} else {

Powered by Google App Engine
This is Rietveld 408576698