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

Unified Diff: chrome/browser/rlz/rlz.cc

Issue 3200: Load RLZ in 20 seconds instead of 100 seconds.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/rlz/rlz.cc
===================================================================
--- chrome/browser/rlz/rlz.cc (revision 2436)
+++ chrome/browser/rlz/rlz.cc (working copy)
@@ -152,7 +152,11 @@
// For non-interactive tests we don't do the rest of the initialization.
if (::GetEnvironmentVariableW(env_vars::kHeadless, NULL, 0))
return;
- if (first_run_) {
+
+ std::wstring omnibox_rlz;
+ RLZTracker::GetAccessPointRlz(RLZTracker::CHROME_OMNIBOX, &omnibox_rlz);
+
+ if (first_run_ || omnibox_rlz.empty()) {
// Record the installation of chrome.
RLZTracker::RecordProductEvent(RLZTracker::CHROME,
RLZTracker::CHROME_OMNIBOX,
@@ -204,9 +208,9 @@
bool RLZTracker::InitRlzDelayed(int directory_key, bool first_run) {
// Schedule the delayed init items.
- const int kOneHundredSeconds = 100000;
+ const int kTwentySeconds = 20 * 1000;
MessageLoop::current()->PostDelayedTask(FROM_HERE,
- new DelayedInitTask(directory_key, first_run), kOneHundredSeconds);
+ new DelayedInitTask(directory_key, first_run), kTwentySeconds);
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698