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

Unified Diff: chrome/browser/prefs/pref_value_store.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/prefs/pref_value_store.cc
diff --git a/chrome/browser/prefs/pref_value_store.cc b/chrome/browser/prefs/pref_value_store.cc
index bc759f84802476c5218c21cd14f52f9caffeb8ff..e023a045f2e1a0ecad1fb0c84e4a21fdb3a9512d 100644
--- a/chrome/browser/prefs/pref_value_store.cc
+++ b/chrome/browser/prefs/pref_value_store.cc
@@ -116,7 +116,7 @@ bool PrefValueStore::GetValue(const std::string& name,
for (size_t i = 0; i <= PREF_STORE_TYPE_MAX; ++i) {
if (GetValueFromStore(name.c_str(), static_cast<PrefStoreType>(i),
out_value)) {
- if (!(*out_value)->IsType(type)) {
+ if ((*out_value)->GetType() != type) {
LOG(WARNING) << "Expected type for " << name << " is " << type
<< " but got " << (*out_value)->GetType()
<< " in store " << i;
« no previous file with comments | « chrome/browser/prefs/pref_service_uitest.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698