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 300593002: Make omaha, gcapi and uninstall registry accesses use Wow6432Node on 64-bit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move the uninstall registry access to 32-bit Created 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 208
209 std::string GoogleChromeDistribution::GetHttpPipeliningTestServer() const { 209 std::string GoogleChromeDistribution::GetHttpPipeliningTestServer() const {
210 return chrome_common_net::kPipelineTestServerBaseUrl; 210 return chrome_common_net::kPipelineTestServerBaseUrl;
211 } 211 }
212 212
213 base::string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) { 213 base::string16 GoogleChromeDistribution::GetDistributionData(HKEY root_key) {
214 base::string16 sub_key(google_update::kRegPathClientState); 214 base::string16 sub_key(google_update::kRegPathClientState);
215 sub_key.append(L"\\"); 215 sub_key.append(L"\\");
216 sub_key.append(product_guid()); 216 sub_key.append(product_guid());
217 217
218 base::win::RegKey client_state_key(root_key, sub_key.c_str(), KEY_READ); 218 base::win::RegKey client_state_key(root_key, sub_key.c_str(),
219 KEY_READ | KEY_WOW64_32KEY);
219 base::string16 result; 220 base::string16 result;
220 base::string16 brand_value; 221 base::string16 brand_value;
221 if (client_state_key.ReadValue(google_update::kRegRLZBrandField, 222 if (client_state_key.ReadValue(google_update::kRegRLZBrandField,
222 &brand_value) == ERROR_SUCCESS) { 223 &brand_value) == ERROR_SUCCESS) {
223 result = google_update::kRegRLZBrandField; 224 result = google_update::kRegRLZBrandField;
224 result.append(L"="); 225 result.append(L"=");
225 result.append(brand_value); 226 result.append(brand_value);
226 result.append(L"&"); 227 result.append(L"&");
227 } 228 }
228 229
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 product_guid()); 296 product_guid());
296 } 297 }
297 298
298 bool GoogleChromeDistribution::ShouldSetExperimentLabels() { 299 bool GoogleChromeDistribution::ShouldSetExperimentLabels() {
299 return true; 300 return true;
300 } 301 }
301 302
302 bool GoogleChromeDistribution::HasUserExperiments() { 303 bool GoogleChromeDistribution::HasUserExperiments() {
303 return true; 304 return true;
304 } 305 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698