Chromium Code Reviews| 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_)); |