Index: chrome/browser/rlz/rlz.h |
diff --git a/chrome/browser/rlz/rlz.h b/chrome/browser/rlz/rlz.h |
index e41b5a3ec019c3ab369081301d2a9b5500c9aa78..aa02d497246749953ba1a885f0450534bf19f833 100644 |
--- a/chrome/browser/rlz/rlz.h |
+++ b/chrome/browser/rlz/rlz.h |
@@ -20,6 +20,7 @@ |
#include "content/public/browser/notification_registrar.h" |
#include "rlz/lib/rlz_lib.h" |
+class Profile; |
namespace net { |
class URLRequestContextGetter; |
} |
@@ -41,11 +42,9 @@ class RLZTracker : public content::NotificationObserver { |
// registers some events when 'first-run' is true. |
// |
// If the chrome brand is organic (no partners) then the pings don't occur. |
- static bool InitRlzDelayed(bool first_run, |
- int delay, |
- bool is_google_default_search, |
- bool is_google_homepage, |
- bool is_google_in_startpages); |
+ static bool InitRlzFromProfileDelayed(Profile* profile, |
+ bool first_run, |
+ int delay); |
// Records an RLZ event. Some events can be access point independent. |
// Returns false it the event could not be recorded. Requires write access |
@@ -82,6 +81,13 @@ class RLZTracker : public content::NotificationObserver { |
RLZTracker(); |
virtual ~RLZTracker(); |
+ // Called by InitRlzFromProfileDelayed with values taken from |profile|. |
+ static bool InitRlzDelayed(bool first_run, |
+ int delay, |
+ bool is_google_default_search, |
+ bool is_google_homepage, |
+ bool is_google_in_startpages); |
+ |
// Performs initialization of RLZ tracker that is purposefully delayed so |
// that it does not interfere with chrome startup time. |
virtual void DelayedInit(); |
@@ -186,6 +192,10 @@ class RLZTracker : public content::NotificationObserver { |
bool omnibox_used_; |
bool homepage_used_; |
+ // Main and (optionally) reactivation brand codes, assigned on UI thread. |
+ std::string brand_; |
+ std::string reactivation_brand_; |
+ |
content::NotificationRegistrar registrar_; |
DISALLOW_COPY_AND_ASSIGN(RLZTracker); |