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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2714853002: Remove kDistroDict from Preferences. (Closed)
Patch Set: Format and hide constant behind flag too 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 4dda69d677d3fd1a817eebd5e2ddf0966229a6e0..97fbd0e377146ce6b1d75e9590051361f2fd7b55 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1742,9 +1742,7 @@ 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);
// Negative ping delay means to send ping immediately after a first search is
// recorded.
rlz::RLZTracker::SetRlzDelegate(

Powered by Google App Engine
This is Rietveld 408576698