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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2714853002: Remove kDistroDict from Preferences. (Closed)
Patch Set: fix compile: RLZ files are compiled outside of RLZ?! 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: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index dd7aa64552f037cbd86a55a92219d26abf112daf..6cc78eadb2b7cf70110f8aeb96b1ee57eef396d4 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1741,16 +1741,14 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
// Init the RLZ library. This just binds the dll and schedules a task on the
// file thread to be run sometime later. If this is the first run we record
// the installation event.
- PrefService* pref_service = profile_->GetPrefs();
- int ping_delay = first_run::IsChromeFirstRun() ? master_prefs_->ping_delay :
- pref_service->GetInteger(first_run::GetPingDelayPrefName().c_str());
+ int ping_delay = profile_->GetPrefs()->GetInteger(prefs::kRlzPingDelay);
sky 2017/03/01 03:52:09 optional: How about renaming the pref kRlzPingDela
gab 2017/03/01 04:28:02 Done.
// Negative ping delay means to send ping immediately after a first search is
// recorded.
rlz::RLZTracker::SetRlzDelegate(
base::WrapUnique(new ChromeRLZTrackerDelegate));
rlz::RLZTracker::InitRlzDelayed(
first_run::IsChromeFirstRun(), ping_delay < 0,
- base::TimeDelta::FromMilliseconds(abs(ping_delay)),
+ base::TimeDelta::FromSeconds(abs(ping_delay)),
ChromeRLZTrackerDelegate::IsGoogleDefaultSearch(profile_),
ChromeRLZTrackerDelegate::IsGoogleHomepage(profile_),
ChromeRLZTrackerDelegate::IsGoogleInStartpages(profile_));
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/session/user_session_manager.cc » ('j') | chrome/common/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698