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

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

Issue 3172009: Cleanup Registry API: part 3. (Closed) Base URL: git://git.chromium.org/chromium.git
Patch Set: chrome fixes Created 10 years, 4 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
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 std::wstring GoogleChromeDistribution::GetStatsServerURL() { 405 std::wstring GoogleChromeDistribution::GetStatsServerURL() {
406 return L"https://clients4.google.com/firefox/metrics/collect"; 406 return L"https://clients4.google.com/firefox/metrics/collect";
407 } 407 }
408 408
409 std::wstring GoogleChromeDistribution::GetDistributionData(RegKey* key) { 409 std::wstring GoogleChromeDistribution::GetDistributionData(RegKey* key) {
410 DCHECK(NULL != key); 410 DCHECK(NULL != key);
411 std::wstring sub_key(google_update::kRegPathClientState); 411 std::wstring sub_key(google_update::kRegPathClientState);
412 sub_key.append(L"\\"); 412 sub_key.append(L"\\");
413 sub_key.append(product_guid()); 413 sub_key.append(product_guid());
414 414
415 RegKey client_state_key(key->Handle(), sub_key.c_str()); 415 RegKey client_state_key(key->Handle(), sub_key.c_str(), KEY_READ);
416 std::wstring result; 416 std::wstring result;
417 std::wstring brand_value; 417 std::wstring brand_value;
418 if (client_state_key.ReadValue(google_update::kRegRLZBrandField, 418 if (client_state_key.ReadValue(google_update::kRegRLZBrandField,
419 &brand_value)) { 419 &brand_value)) {
420 result = google_update::kRegRLZBrandField; 420 result = google_update::kRegRLZBrandField;
421 result.append(L"="); 421 result.append(L"=");
422 result.append(brand_value); 422 result.append(brand_value);
423 result.append(L"&"); 423 result.append(L"&");
424 } 424 }
425 425
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 GoogleUpdateSettings::SetClient(GetExperimentGroup(outcome, flavor)); 589 GoogleUpdateSettings::SetClient(GetExperimentGroup(outcome, flavor));
590 if (outcome != kToastExpUninstallGroup) 590 if (outcome != kToastExpUninstallGroup)
591 return; 591 return;
592 // The user wants to uninstall. This is a best effort operation. Note that 592 // The user wants to uninstall. This is a best effort operation. Note that
593 // we waited for chrome to exit so the uninstall would not detect chrome 593 // we waited for chrome to exit so the uninstall would not detect chrome
594 // running. 594 // running.
595 base::LaunchApp(InstallUtil::GetChromeUninstallCmd(system_install), 595 base::LaunchApp(InstallUtil::GetChromeUninstallCmd(system_install),
596 false, false, NULL); 596 false, false, NULL);
597 } 597 }
598 #endif 598 #endif
OLDNEW
« no previous file with comments | « chrome/installer/setup/uninstall.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698