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

Unified Diff: chrome/browser/doodle/doodle_service_factory.cc

Issue 2772313002: [Doodle] Don't refresh more than once per 15 mins (Closed)
Patch Set: override_min_refresh_interval Created 3 years, 9 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 | « no previous file | components/doodle/doodle_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/doodle/doodle_service_factory.cc
diff --git a/chrome/browser/doodle/doodle_service_factory.cc b/chrome/browser/doodle/doodle_service_factory.cc
index 85514239f46c6d5f2121e235452a40081321a084..408f17af599f8fe0087f6025a8066aa14ed45569 100644
--- a/chrome/browser/doodle/doodle_service_factory.cc
+++ b/chrome/browser/doodle/doodle_service_factory.cc
@@ -59,8 +59,10 @@ KeyedService* DoodleServiceFactory::BuildServiceInstanceFor(
profile->GetRequestContext(),
GoogleURLTrackerFactory::GetForProfile(profile),
base::Bind(&safe_json::SafeJsonParser::Parse), use_gray_background);
- return new doodle::DoodleService(profile->GetPrefs(), std::move(fetcher),
- base::MakeUnique<base::OneShotTimer>(),
- base::MakeUnique<base::DefaultClock>(),
- base::MakeUnique<base::DefaultTickClock>());
+ return new doodle::DoodleService(
+ profile->GetPrefs(), std::move(fetcher),
+ base::MakeUnique<base::OneShotTimer>(),
+ base::MakeUnique<base::DefaultClock>(),
+ base::MakeUnique<base::DefaultTickClock>(),
+ /*override_min_refresh_interval=*/base::nullopt);
}
« no previous file with comments | « no previous file | components/doodle/doodle_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698