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

Unified Diff: chrome/browser/prefs/chrome_pref_service_unittest.cc

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 8 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 | « chrome/browser/prefs/chrome_pref_service_factory.cc ('k') | chrome/browser/prefs/incognito_mode_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/chrome_pref_service_unittest.cc
diff --git a/chrome/browser/prefs/chrome_pref_service_unittest.cc b/chrome/browser/prefs/chrome_pref_service_unittest.cc
index fbe56df30b388193b84947a1bf853c82ebe31106..4dab4fca53b4fc3610920e0a113e908ba6f58a19 100644
--- a/chrome/browser/prefs/chrome_pref_service_unittest.cc
+++ b/chrome/browser/prefs/chrome_pref_service_unittest.cc
@@ -101,26 +101,29 @@ TEST_F(ChromePrefServiceUserFilePrefsTest, PreserveEmptyValue) {
PrefServiceMockBuilder builder;
builder.WithUserFilePrefs(pref_file, message_loop_.message_loop_proxy());
- scoped_refptr<PrefRegistrySyncable> registry(new PrefRegistrySyncable);
+ scoped_refptr<user_prefs::PrefRegistrySyncable> registry(
+ new user_prefs::PrefRegistrySyncable);
scoped_ptr<PrefServiceSyncable> prefs(builder.CreateSyncable(registry));
// Register testing prefs.
registry->RegisterListPref("list",
- PrefRegistrySyncable::UNSYNCABLE_PREF);
- registry->RegisterDictionaryPref("dict",
- PrefRegistrySyncable::UNSYNCABLE_PREF);
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterDictionaryPref(
+ "dict",
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
base::ListValue* non_empty_list = new base::ListValue;
non_empty_list->Append(base::Value::CreateStringValue("test"));
registry->RegisterListPref("list_needs_empty_value",
non_empty_list,
- PrefRegistrySyncable::UNSYNCABLE_PREF);
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
base::DictionaryValue* non_empty_dict = new base::DictionaryValue;
non_empty_dict->SetString("dummy", "whatever");
- registry->RegisterDictionaryPref("dict_needs_empty_value",
- non_empty_dict,
- PrefRegistrySyncable::UNSYNCABLE_PREF);
+ registry->RegisterDictionaryPref(
+ "dict_needs_empty_value",
+ non_empty_dict,
+ user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
// Set all testing prefs to empty.
ClearListValue(prefs.get(), "list");
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_factory.cc ('k') | chrome/browser/prefs/incognito_mode_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698