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

Unified Diff: chrome/browser/policy/configuration_policy_pref_store.cc

Issue 11365112: Change PrefStore::ReadResult to a boolean. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 1 month 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/policy/configuration_policy_pref_store.cc
diff --git a/chrome/browser/policy/configuration_policy_pref_store.cc b/chrome/browser/policy/configuration_policy_pref_store.cc
index 968b95f60b38be5ff66b555d1131bc52047b9678..1449a6d72d10af3a7b0ced00c5dd23cbba450c76 100644
--- a/chrome/browser/policy/configuration_policy_pref_store.cc
+++ b/chrome/browser/policy/configuration_policy_pref_store.cc
@@ -65,16 +65,15 @@ bool ConfigurationPolicyPrefStore::IsInitializationComplete() const {
return policy_service_->IsInitializationComplete();
}
-PrefStore::ReadResult
-ConfigurationPolicyPrefStore::GetValue(const std::string& key,
- const Value** value) const {
+bool ConfigurationPolicyPrefStore::GetValue(const std::string& key,
+ const Value** value) const {
const Value* stored_value = NULL;
if (!prefs_.get() || !prefs_->GetValue(key, &stored_value))
- return PrefStore::READ_NO_VALUE;
+ return false;
if (value)
*value = stored_value;
- return PrefStore::READ_OK;
+ return true;
}
void ConfigurationPolicyPrefStore::OnPolicyUpdated(

Powered by Google App Engine
This is Rietveld 408576698