summaryrefslogtreecommitdiffstats
path: root/chrome/browser/rlz
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 02:44:08 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 02:44:08 +0000
commit0a85712d195c1a3ad55a75d8321fe22c593bf35f (patch)
tree1c0fa132fe8a2e511046cb633ad3a8472682b42e /chrome/browser/rlz
parente341910054c9a11f5027a052a0c174fbde9102b2 (diff)
downloadchromium_src-0a85712d195c1a3ad55a75d8321fe22c593bf35f.zip
chromium_src-0a85712d195c1a3ad55a75d8321fe22c593bf35f.tar.gz
chromium_src-0a85712d195c1a3ad55a75d8321fe22c593bf35f.tar.bz2
Add client parameter to the RLZ ping
- Does nothing on regular chrome or chromium installs - up to google_update to put data in 'client' BUG=1503035 Review URL: http://codereview.chromium.org/12657 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6030 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/rlz')
-rw-r--r--chrome/browser/rlz/rlz.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/rlz/rlz.cc b/chrome/browser/rlz/rlz.cc
index b13af4f..ed63189 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,
- bool exclude_id) {
+ const wchar_t* client, 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, NULL, lang,
+ return send_ping(RLZTracker::CHROME, points, L"chrome", brand, client, lang,
exclude_id, NULL);
}
@@ -180,7 +180,10 @@ class DailyPingTask : public Task {
lang = L"en";
std::wstring brand;
GoogleUpdateSettings::GetBrand(&brand);
- if (SendFinancialPing(brand.c_str(), lang.c_str(), is_organic(brand)))
+ std::wstring client;
+ GoogleUpdateSettings::GetClient(&client);
+ if (SendFinancialPing(brand.c_str(), lang.c_str(), client.c_str(),
+ is_organic(brand)))
access_values_state = ACCESS_VALUES_STALE;
}