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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 11645040: RLZ on ChromeOS-related polishing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | chrome/browser/chromeos/login/login_utils.cc » ('j') | chrome/browser/rlz/rlz.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 9222d5137621500bf8134975bdd0601632d8689c..9522af88c1ff5841ab6930554b55df1d9bd381d2 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1257,7 +1257,11 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
PrefService* pref_service = profile_->GetPrefs();
int ping_delay = is_first_run_ ? master_prefs_->ping_delay :
pref_service->GetInteger(first_run::GetPingDelayPrefName().c_str());
- RLZTracker::InitRlzFromProfileDelayed(profile_, is_first_run_, ping_delay);
+ // Negative ping delay means to send ping immediately after a first search is
+ // recorded.
+ RLZTracker::InitRlzFromProfileDelayed(
+ profile_, is_first_run_, ping_delay < 0,
+ base::TimeDelta::FromMilliseconds(abs(ping_delay)));
#endif // defined(ENABLE_RLZ) && !defined(OS_CHROMEOS)
// Configure modules that need access to resources.
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_utils.cc » ('j') | chrome/browser/rlz/rlz.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698