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

Side by Side Diff: chrome/installer/util/google_chrome_distribution.cc

Issue 7056031: Collect stats to investigate the viability of UDP (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file defines specific implementation of BrowserDistribution class for 5 // This file defines specific implementation of BrowserDistribution class for
6 // Google Chrome. 6 // Google Chrome.
7 7
8 #include "chrome/installer/util/google_chrome_distribution.h" 8 #include "chrome/installer/util/google_chrome_distribution.h"
9 9
10 #include <windows.h> 10 #include <windows.h>
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 std::wstring key(google_update::kRegPathClientStateMedium); 415 std::wstring key(google_update::kRegPathClientStateMedium);
416 key.append(L"\\"); 416 key.append(L"\\");
417 key.append(product_guid()); 417 key.append(product_guid());
418 return key; 418 return key;
419 } 419 }
420 420
421 std::wstring GoogleChromeDistribution::GetStatsServerURL() { 421 std::wstring GoogleChromeDistribution::GetStatsServerURL() {
422 return L"https://clients4.google.com/firefox/metrics/collect"; 422 return L"https://clients4.google.com/firefox/metrics/collect";
423 } 423 }
424 424
425 std::string GoogleChromeDistribution::GetNetworkStatsServer() {
426 // TODO(rtenneti): Return the network stats server name.
427 return "";
428 }
429
425 std::wstring GoogleChromeDistribution::GetDistributionData(HKEY root_key) { 430 std::wstring GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
426 std::wstring sub_key(google_update::kRegPathClientState); 431 std::wstring sub_key(google_update::kRegPathClientState);
427 sub_key.append(L"\\"); 432 sub_key.append(L"\\");
428 sub_key.append(product_guid()); 433 sub_key.append(product_guid());
429 434
430 base::win::RegKey client_state_key(root_key, sub_key.c_str(), KEY_READ); 435 base::win::RegKey client_state_key(root_key, sub_key.c_str(), KEY_READ);
431 std::wstring result; 436 std::wstring result;
432 std::wstring brand_value; 437 std::wstring brand_value;
433 if (client_state_key.ReadValue(google_update::kRegRLZBrandField, 438 if (client_state_key.ReadValue(google_update::kRegRLZBrandField,
434 &brand_value) == ERROR_SUCCESS) { 439 &brand_value) == ERROR_SUCCESS) {
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 // we waited for chrome to exit so the uninstall would not detect chrome 761 // we waited for chrome to exit so the uninstall would not detect chrome
757 // running. 762 // running.
758 bool system_level_toast = CommandLine::ForCurrentProcess()->HasSwitch( 763 bool system_level_toast = CommandLine::ForCurrentProcess()->HasSwitch(
759 installer::switches::kSystemLevelToast); 764 installer::switches::kSystemLevelToast);
760 765
761 CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast, 766 CommandLine cmd(InstallUtil::GetChromeUninstallCmd(system_level_toast,
762 GetType())); 767 GetType()));
763 base::LaunchApp(cmd, false, false, NULL); 768 base::LaunchApp(cmd, false, false, NULL);
764 } 769 }
765 #endif 770 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698