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

Unified Diff: base/prefs/testing_pref_service.h

Issue 16160015: Update base/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « base/prefs/pref_value_store_unittest.cc ('k') | base/synchronization/waitable_event_watcher_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/testing_pref_service.h
diff --git a/base/prefs/testing_pref_service.h b/base/prefs/testing_pref_service.h
index 9d290fe323bb4c0ef4fa915746b8a8591a3ef5ab..fee19817fc4cc5f149d57322fa407959c2088f9a 100644
--- a/base/prefs/testing_pref_service.h
+++ b/base/prefs/testing_pref_service.h
@@ -119,14 +119,14 @@ template<class SuperPrefService, class ConstructionPrefRegistry>
void TestingPrefServiceBase<
SuperPrefService, ConstructionPrefRegistry>::SetManagedPref(
const char* path, Value* value) {
- SetPref(managed_prefs_, path, value);
+ SetPref(managed_prefs_.get(), path, value);
}
template<class SuperPrefService, class ConstructionPrefRegistry>
void TestingPrefServiceBase<
SuperPrefService, ConstructionPrefRegistry>::RemoveManagedPref(
const char* path) {
- RemovePref(managed_prefs_, path);
+ RemovePref(managed_prefs_.get(), path);
}
template<class SuperPrefService, class ConstructionPrefRegistry>
@@ -140,14 +140,14 @@ template<class SuperPrefService, class ConstructionPrefRegistry>
void TestingPrefServiceBase<
SuperPrefService, ConstructionPrefRegistry>::SetUserPref(
const char* path, Value* value) {
- SetPref(user_prefs_, path, value);
+ SetPref(user_prefs_.get(), path, value);
}
template<class SuperPrefService, class ConstructionPrefRegistry>
void TestingPrefServiceBase<
SuperPrefService, ConstructionPrefRegistry>::RemoveUserPref(
const char* path) {
- RemovePref(user_prefs_, path);
+ RemovePref(user_prefs_.get(), path);
}
template<class SuperPrefService, class ConstructionPrefRegistry>
@@ -161,7 +161,7 @@ template<class SuperPrefService, class ConstructionPrefRegistry>
void TestingPrefServiceBase<
SuperPrefService, ConstructionPrefRegistry>::SetRecommendedPref(
const char* path, Value* value) {
- SetPref(recommended_prefs_, path, value);
+ SetPref(recommended_prefs_.get(), path, value);
}
template<class SuperPrefService, class ConstructionPrefRegistry>
« no previous file with comments | « base/prefs/pref_value_store_unittest.cc ('k') | base/synchronization/waitable_event_watcher_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698