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

Unified Diff: base/prefs/testing_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: base/prefs/testing_pref_store.cc
diff --git a/base/prefs/testing_pref_store.cc b/base/prefs/testing_pref_store.cc
index f7c78305d7c27c95193e666a1ec5f27acbd7e98f..d40fb8ad747cc3818f09d5b78126f2346d49cc00 100644
--- a/base/prefs/testing_pref_store.cc
+++ b/base/prefs/testing_pref_store.cc
@@ -12,14 +12,14 @@ TestingPrefStore::TestingPrefStore()
init_complete_(false) {
}
-PrefStore::ReadResult TestingPrefStore::GetValue(const std::string& key,
- const Value** value) const {
- return prefs_.GetValue(key, value) ? READ_OK : READ_NO_VALUE;
+bool TestingPrefStore::GetValue(const std::string& key,
+ const Value** value) const {
+ return prefs_.GetValue(key, value);
}
-PrefStore::ReadResult TestingPrefStore::GetMutableValue(const std::string& key,
- Value** value) {
- return prefs_.GetValue(key, value) ? READ_OK : READ_NO_VALUE;
+bool TestingPrefStore::GetMutableValue(const std::string& key,
+ Value** value) {
+ return prefs_.GetValue(key, value);
}
void TestingPrefStore::AddObserver(PrefStore::Observer* observer) {

Powered by Google App Engine
This is Rietveld 408576698