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

Unified Diff: chrome/browser/ui/webui/ntp/shown_sections_handler_unittest.cc

Issue 6905044: Refactor preference syncing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Self review Created 9 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
Index: chrome/browser/ui/webui/ntp/shown_sections_handler_unittest.cc
diff --git a/chrome/browser/ui/webui/ntp/shown_sections_handler_unittest.cc b/chrome/browser/ui/webui/ntp/shown_sections_handler_unittest.cc
index ec96cb0bf2a952ed5492211c80148e582b5e5b92..fd52d745a07e288c71c8ccb737064949fedf017e 100644
--- a/chrome/browser/ui/webui/ntp/shown_sections_handler_unittest.cc
+++ b/chrome/browser/ui/webui/ntp/shown_sections_handler_unittest.cc
@@ -27,7 +27,9 @@ int MigratePrefValue(PrefService* prefs, int starting_value) {
TEST_F(ShownSectionsHandlerTest, MigrateUserPrefs) {
scoped_ptr<PrefService> pref(new TestingPrefService);
- pref->RegisterIntegerPref(prefs::kNTPShownSections, 0);
+ pref->RegisterIntegerPref(prefs::kNTPShownSections,
+ 0,
+ false /* don't sync pref */);
EXPECT_EQ(APPS, MigratePrefValue(pref.get(), APPS));
EXPECT_EQ(THUMB, MigratePrefValue(pref.get(), THUMB));

Powered by Google App Engine
This is Rietveld 408576698