From 27845cac2c3443eca508003c3951739e88ae8f24 Mon Sep 17 00:00:00 2001 From: "gwilson@google.com" Date: Fri, 5 Dec 2008 19:36:03 +0000 Subject: Change "client" parameter in RLZ ping to "referral" to match Omaha's changes. BUG=1520348 Review URL: http://codereview.chromium.org/12975 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6440 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/rlz/rlz.cc | 10 +++++----- chrome/installer/util/google_update_constants.cc | 2 +- chrome/installer/util/google_update_constants.h | 2 +- chrome/installer/util/google_update_settings.cc | 4 ++-- chrome/installer/util/google_update_settings.h | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/chrome/browser/rlz/rlz.cc b/chrome/browser/rlz/rlz.cc index ed63189..bdd8abb 100644 --- a/chrome/browser/rlz/rlz.cc +++ b/chrome/browser/rlz/rlz.cc @@ -108,13 +108,13 @@ bool LoadRLZLibrary(int directory_key) { } bool SendFinancialPing(const wchar_t* brand, const wchar_t* lang, - const wchar_t* client, bool exclude_id) { + const wchar_t* referral, bool exclude_id) { RLZTracker::AccessPoint points[] = {RLZTracker::CHROME_OMNIBOX, RLZTracker::CHROME_HOME_PAGE, RLZTracker::NO_ACCESS_POINT}; if (!send_ping) return false; - return send_ping(RLZTracker::CHROME, points, L"chrome", brand, client, lang, + return send_ping(RLZTracker::CHROME, points, L"chrome", brand, referral, lang, exclude_id, NULL); } @@ -180,9 +180,9 @@ class DailyPingTask : public Task { lang = L"en"; std::wstring brand; GoogleUpdateSettings::GetBrand(&brand); - std::wstring client; - GoogleUpdateSettings::GetClient(&client); - if (SendFinancialPing(brand.c_str(), lang.c_str(), client.c_str(), + std::wstring referral; + GoogleUpdateSettings::GetReferral(&referral); + if (SendFinancialPing(brand.c_str(), lang.c_str(), referral.c_str(), is_organic(brand))) access_values_state = ACCESS_VALUES_STALE; } diff --git a/chrome/installer/util/google_update_constants.cc b/chrome/installer/util/google_update_constants.cc index 860229a..fc2dbc7 100644 --- a/chrome/installer/util/google_update_constants.cc +++ b/chrome/installer/util/google_update_constants.cc @@ -23,7 +23,7 @@ const wchar_t kRegRenameCmdField[] = L"cmd"; const wchar_t kRegRLZBrandField[] = L"brand"; const wchar_t kRegUsageStatsField[] = L"usagestats"; const wchar_t kRegVersionField[] = L"pv"; -const wchar_t kRegClientField[] = L"client"; +const wchar_t kRegReferralField[] = L"referral"; const wchar_t kEnvProductVersionKey[] = L"CHROME_VERSION"; } // namespace installer diff --git a/chrome/installer/util/google_update_constants.h b/chrome/installer/util/google_update_constants.h index bd225a8..66b1efe 100644 --- a/chrome/installer/util/google_update_constants.h +++ b/chrome/installer/util/google_update_constants.h @@ -28,7 +28,7 @@ extern const wchar_t kRegRenameCmdField[]; extern const wchar_t kRegRLZBrandField[]; extern const wchar_t kRegUsageStatsField[]; extern const wchar_t kRegVersionField[]; -extern const wchar_t kRegClientField[]; +extern const wchar_t kRegReferralField[]; extern const wchar_t kEnvProductVersionKey[]; } // namespace google_update diff --git a/chrome/installer/util/google_update_settings.cc b/chrome/installer/util/google_update_settings.cc index 57b20cb..8168be2 100644 --- a/chrome/installer/util/google_update_settings.cc +++ b/chrome/installer/util/google_update_settings.cc @@ -59,6 +59,6 @@ bool GoogleUpdateSettings::GetBrand(std::wstring* brand) { return ReadGoogleUpdateStrKey(google_update::kRegRLZBrandField, brand); } -bool GoogleUpdateSettings::GetClient(std::wstring* client) { - return ReadGoogleUpdateStrKey(google_update::kRegClientField, client); +bool GoogleUpdateSettings::GetReferral(std::wstring* referral) { + return ReadGoogleUpdateStrKey(google_update::kRegReferralField, referral); } diff --git a/chrome/installer/util/google_update_settings.h b/chrome/installer/util/google_update_settings.h index caa75b1..d5c6876 100644 --- a/chrome/installer/util/google_update_settings.h +++ b/chrome/installer/util/google_update_settings.h @@ -36,9 +36,9 @@ class GoogleUpdateSettings { // assigned to a partner. Returns false if the information is not available. static bool GetBrand(std::wstring* brand); - // Returns in 'client' the RLZ client id available for some distribution + // Returns in 'client' the RLZ referral available for some distribution // partners. This value does not exist for most chrome or chromium installs. - static bool GetClient(std::wstring* client); + static bool GetReferral(std::wstring* referral); private: DISALLOW_IMPLICIT_CONSTRUCTORS(GoogleUpdateSettings); -- cgit v1.1