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

Unified Diff: components/ntp_tiles/most_visited_sites_unittest.cc

Issue 2668943002: provide static popular sites for first run (Closed)
Patch Set: most_visited_unittest registers prefs properly. Created 3 years, 10 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: components/ntp_tiles/most_visited_sites_unittest.cc
diff --git a/components/ntp_tiles/most_visited_sites_unittest.cc b/components/ntp_tiles/most_visited_sites_unittest.cc
index 9c166090ffd9ef8ca301cfa2a2ae68e5254f7206..a4c040626ce2c9fffdd549d1369038f595958f8d 100644
--- a/components/ntp_tiles/most_visited_sites_unittest.cc
+++ b/components/ntp_tiles/most_visited_sites_unittest.cc
@@ -207,9 +207,8 @@ class PopularSitesFactoryForTest {
url_request_context_(new net::TestURLRequestContextGetter(
base::ThreadTaskRunnerHandle::Get())),
worker_pool_owner_(/*max_threads=*/2, "PopularSitesFactoryForTest.") {
+ PopularSitesImpl::RegisterProfilePrefs(pref_service->registry());
if (enabled) {
- PopularSitesImpl::RegisterProfilePrefs(pref_service->registry());
-
prefs_->SetString(prefs::kPopularSitesOverrideCountry, "IN");
prefs_->SetString(prefs::kPopularSitesOverrideVersion, "7");

Powered by Google App Engine
This is Rietveld 408576698