Chromium Code Reviews| Index: chrome/browser/rlz/rlz.cc |
| diff --git a/chrome/browser/rlz/rlz.cc b/chrome/browser/rlz/rlz.cc |
| index 00882db390e3116f0c86278a0024914dac0780fb..b7a409cee1e7c000f27ab896b4f1f5a23b8bede9 100644 |
| --- a/chrome/browser/rlz/rlz.cc |
| +++ b/chrome/browser/rlz/rlz.cc |
| @@ -83,6 +83,9 @@ void RecordProductEvents(bool first_run, |
| rlz_lib::RecordProductEvent(rlz_lib::CHROME, |
| RLZTracker::CHROME_HOME_PAGE, |
| rlz_lib::INSTALL); |
| + rlz_lib::RecordProductEvent(rlz_lib::CHROME, |
| + RLZTracker::CHROME_APP_LIST, |
| + rlz_lib::INSTALL); |
| if (!already_ran) { |
| // Do the initial event recording if is the first run or if we have an |
| @@ -112,6 +115,19 @@ void RecordProductEvents(bool first_run, |
| RLZTracker::CHROME_HOME_PAGE, |
| rlz_lib::SET_TO_GOOGLE); |
| } |
| + |
| + char app_list_rlz[rlz_lib::kMaxRlzLength + 1]; |
| + if (!rlz_lib::GetAccessPointRlz(RLZTracker::CHROME_APP_LIST, app_list_rlz, |
| + rlz_lib::kMaxRlzLength)) { |
| + app_list_rlz[0] = 0; |
| + } |
| + |
| + // Record if google is the initial search provider and/or home page. |
| + if ((first_run || app_list_rlz[0] == 0) && is_google_default_search) { |
| + rlz_lib::RecordProductEvent(rlz_lib::CHROME, |
| + RLZTracker::CHROME_APP_LIST, |
| + rlz_lib::SET_TO_GOOGLE); |
| + } |
| } |
| // Record first user interaction with the omnibox. We call this all the |
| @@ -136,6 +152,7 @@ bool SendFinancialPing(const std::string& brand, |
| const base::string16& referral) { |
| rlz_lib::AccessPoint points[] = {RLZTracker::CHROME_OMNIBOX, |
| RLZTracker::CHROME_HOME_PAGE, |
| + RLZTracker::CHROME_APP_LIST, |
| rlz_lib::NO_ACCESS_POINT}; |
| std::string lang_ascii(base::UTF16ToASCII(lang)); |
| std::string referral_ascii(base::UTF16ToASCII(referral)); |
| @@ -160,6 +177,9 @@ const rlz_lib::AccessPoint RLZTracker::CHROME_OMNIBOX = |
| // static |
| const rlz_lib::AccessPoint RLZTracker::CHROME_HOME_PAGE = |
| rlz_lib::CHROME_HOME_PAGE; |
| +// static |
| +const rlz_lib::AccessPoint RLZTracker::CHROME_APP_LIST = |
| + rlz_lib::CHROME_APP_LIST; |
| #elif defined(OS_IOS) |
| // static |
| const rlz_lib::AccessPoint RLZTracker::CHROME_OMNIBOX = |
| @@ -167,6 +187,9 @@ const rlz_lib::AccessPoint RLZTracker::CHROME_OMNIBOX = |
| // static |
| const rlz_lib::AccessPoint RLZTracker::CHROME_HOME_PAGE = |
| rlz_lib::CHROME_IOS_HOME_PAGE; |
| +// static |
| +const rlz_lib::AccessPoint RLZTracker::CHROME_APP_LIST = |
| + rlz_lib::NO_ACCESS_POINT; |
|
Roger Tawa OOO till Jul 10th
2014/04/01 14:20:18
Hmm, this is brittle. Makes the order of the acce
Sam McNally
2014/04/02 01:27:28
Done.
|
| #elif defined(OS_MACOSX) |
| // static |
| const rlz_lib::AccessPoint RLZTracker::CHROME_OMNIBOX = |
| @@ -174,6 +197,9 @@ const rlz_lib::AccessPoint RLZTracker::CHROME_OMNIBOX = |
| // static |
| const rlz_lib::AccessPoint RLZTracker::CHROME_HOME_PAGE = |
| rlz_lib::CHROME_MAC_HOME_PAGE; |
| +// static |
| +const rlz_lib::AccessPoint RLZTracker::CHROME_APP_LIST = |
| + rlz_lib::CHROME_MAC_APP_LIST; |
| #elif defined(OS_CHROMEOS) |
| // static |
| const rlz_lib::AccessPoint RLZTracker::CHROME_OMNIBOX = |
| @@ -181,6 +207,9 @@ const rlz_lib::AccessPoint RLZTracker::CHROME_OMNIBOX = |
| // static |
| const rlz_lib::AccessPoint RLZTracker::CHROME_HOME_PAGE = |
| rlz_lib::CHROMEOS_HOME_PAGE; |
| +// static |
| +const rlz_lib::AccessPoint RLZTracker::CHROME_APP_LIST = |
| + rlz_lib::CHROMEOS_APP_LIST; |
| #endif |
| RLZTracker* RLZTracker::tracker_ = NULL; |
| @@ -374,6 +403,7 @@ void RLZTracker::PingNowImpl() { |
| // Prime the RLZ cache for the access points we are interested in. |
| GetAccessPointRlz(RLZTracker::CHROME_OMNIBOX, NULL); |
| GetAccessPointRlz(RLZTracker::CHROME_HOME_PAGE, NULL); |
| + GetAccessPointRlz(RLZTracker::CHROME_APP_LIST, NULL); |
| } |
| if (!IsBrandOrganic(reactivation_brand_)) { |