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

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

Issue 10386167: Always do DelegateExecute handler COM registration and make set dual mode prop on shortcuts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: backed out vista change since it didn't work Created 8 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 a class that contains various method related to branding. 5 // This file defines a class that contains various method related to branding.
6 // It provides only default implementations of these methods. Usually to add 6 // It provides only default implementations of these methods. Usually to add
7 // specific branding, we will need to extend this class with a custom 7 // specific branding, we will need to extend this class with a custom
8 // implementation. 8 // implementation.
9 9
10 #include "chrome/installer/util/browser_distribution.h" 10 #include "chrome/installer/util/browser_distribution.h"
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 237
238 bool BrowserDistribution::GetChromeChannel(string16* channel) { 238 bool BrowserDistribution::GetChromeChannel(string16* channel) {
239 return false; 239 return false;
240 } 240 }
241 241
242 bool BrowserDistribution::GetDelegateExecuteHandlerData( 242 bool BrowserDistribution::GetDelegateExecuteHandlerData(
243 string16* handler_class_uuid, 243 string16* handler_class_uuid,
244 string16* type_lib_uuid, 244 string16* type_lib_uuid,
245 string16* type_lib_version, 245 string16* type_lib_version,
246 string16* interface_uuid) { 246 string16* interface_uuid) {
247 // Chrome's DelegateExecute verb handler is only used for Windows 8 and up. 247 if (handler_class_uuid)
248 if (base::win::GetVersion() >= base::win::VERSION_WIN8) { 248 *handler_class_uuid = kCommandExecuteImplUuid;
249 if (handler_class_uuid) 249 if (type_lib_uuid)
250 *handler_class_uuid = kCommandExecuteImplUuid; 250 *type_lib_uuid = kDelegateExecuteLibUuid;
251 if (type_lib_uuid) 251 if (type_lib_version)
252 *type_lib_uuid = kDelegateExecuteLibUuid; 252 *type_lib_version = kDelegateExecuteLibVersion;
253 if (type_lib_version) 253 if (interface_uuid)
254 *type_lib_version = kDelegateExecuteLibVersion; 254 *interface_uuid = kICommandExecuteImplUuid;
255 if (interface_uuid) 255 return true;
256 *interface_uuid = kICommandExecuteImplUuid;
257 return true;
258 }
259 return false;
260 } 256 }
261 257
262 void BrowserDistribution::UpdateInstallStatus(bool system_install, 258 void BrowserDistribution::UpdateInstallStatus(bool system_install,
263 installer::ArchiveType archive_type, 259 installer::ArchiveType archive_type,
264 installer::InstallStatus install_status) { 260 installer::InstallStatus install_status) {
265 } 261 }
266 262
267 bool BrowserDistribution::GetExperimentDetails( 263 bool BrowserDistribution::GetExperimentDetails(
268 UserExperiment* experiment, int flavor) { 264 UserExperiment* experiment, int flavor) {
269 return false; 265 return false;
270 } 266 }
271 267
272 void BrowserDistribution::LaunchUserExperiment( 268 void BrowserDistribution::LaunchUserExperiment(
273 const FilePath& setup_path, installer::InstallStatus status, 269 const FilePath& setup_path, installer::InstallStatus status,
274 const Version& version, const installer::Product& product, 270 const Version& version, const installer::Product& product,
275 bool system_level) { 271 bool system_level) {
276 } 272 }
277 273
278 274
279 void BrowserDistribution::InactiveUserToastExperiment(int flavor, 275 void BrowserDistribution::InactiveUserToastExperiment(int flavor,
280 const string16& experiment_group, 276 const string16& experiment_group,
281 const installer::Product& installation, 277 const installer::Product& installation,
282 const FilePath& application_path) { 278 const FilePath& application_path) {
283 } 279 }
OLDNEW
« no previous file with comments | « chrome/installer/util/browser_distribution.h ('k') | chrome/installer/util/google_chrome_distribution.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698