Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index 185be5a8f31112898c2835bb8194545ede6b203b..6f2379230417fb1040e0a4cc4ad43594a487bfca 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -223,7 +223,8 @@ |
#endif // defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD) |
#if defined(ENABLE_RLZ) |
-#include "chrome/browser/rlz/rlz.h" |
+#include "chrome/browser/rlz/chrome_rlz_tracker_delegate.h" |
+#include "components/rlz/rlz_tracker.h" |
#endif // defined(ENABLE_RLZ) |
#if defined(ENABLE_WEBRTC) |
@@ -1456,9 +1457,14 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { |
pref_service->GetInteger(first_run::GetPingDelayPrefName().c_str()); |
// Negative ping delay means to send ping immediately after a first search is |
// recorded. |
- RLZTracker::InitRlzFromProfileDelayed( |
- profile_, first_run::IsChromeFirstRun(), ping_delay < 0, |
- base::TimeDelta::FromMilliseconds(abs(ping_delay))); |
+ rlz::RLZTracker::SetRlzDelegate( |
+ make_scoped_ptr(new ChromeRLZTrackerDelegate)); |
+ rlz::RLZTracker::InitRlzDelayed( |
+ first_run::IsChromeFirstRun(), ping_delay < 0, |
+ base::TimeDelta::FromMilliseconds(abs(ping_delay)), |
+ ChromeRLZTrackerDelegate::IsGoogleDefaultSearch(profile_), |
+ ChromeRLZTrackerDelegate::IsGoogleHomepage(profile_), |
+ ChromeRLZTrackerDelegate::IsGoogleInStartpages(profile_)); |
#endif // defined(ENABLE_RLZ) && !defined(OS_CHROMEOS) |
// Configure modules that need access to resources. |