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

Unified Diff: chrome/browser/browser_main.cc

Issue 7044068: Remove reference to DefaultProfile from rlz. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 | chrome/browser/rlz/rlz.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 88522)
+++ chrome/browser/browser_main.cc (working copy)
@@ -1702,7 +1702,17 @@
// 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.
- RLZTracker::InitRlzDelayed(is_first_run, master_prefs.ping_delay);
+ bool google_search_default = false;
+ const TemplateURL* url_template =
+ profile->GetTemplateURLModel()->GetDefaultSearchProvider();
+ if (url_template) {
+ const TemplateURLRef* urlref = url_template->url();
+ if (urlref) {
+ google_search_default = urlref->HasGoogleBaseURLs();
+ }
+ }
+ RLZTracker::InitRlzDelayed(is_first_run, master_prefs.ping_delay,
+ google_search_default);
#endif // GOOGLE_CHROME_BUILD
#endif // OS_WIN
« no previous file with comments | « no previous file | chrome/browser/rlz/rlz.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698