| 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..d27f78d660202b21dbab5affd4e56a57b51231f2 100644
|
| --- a/chrome/browser/chrome_browser_main.cc
|
| +++ b/chrome/browser/chrome_browser_main.cc
|
| @@ -1741,16 +1741,15 @@ 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::kRlzPingDelaySeconds);
|
| // 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_));
|
|
|