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

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

Issue 11412067: [rlz,cros] RLZ glue for ChromeOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Header guard Created 8 years, 1 month 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
Index: chrome/browser/rlz/rlz.h
diff --git a/chrome/browser/rlz/rlz.h b/chrome/browser/rlz/rlz.h
index e41b5a3ec019c3ab369081301d2a9b5500c9aa78..56f4757babc8f451745d64d72edce80ec4d74345 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;
}
@@ -47,6 +48,11 @@ class RLZTracker : public content::NotificationObserver {
bool is_google_homepage,
bool is_google_in_startpages);
Roger Tawa OOO till Jul 10th 2012/11/28 15:23:18 This function is no longer called externally excep
Ivan Korotkov 2012/11/29 17:42:28 Done.
+ // Shortcut for InitRlzDelayed which retrieves parameters from |profile|.
+ 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
// to the HKCU registry hive on windows.
@@ -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);

Powered by Google App Engine
This is Rietveld 408576698