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

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

Issue 1878313003: Convert //chrome/installer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert decompress.cc in mini_installer. Created 4 years, 8 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
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 implementation of GoogleChromeSxSDistribution. 5 // This file defines implementation of GoogleChromeSxSDistribution.
6 6
7 #include "chrome/installer/util/google_chrome_sxs_distribution.h" 7 #include "chrome/installer/util/google_chrome_sxs_distribution.h"
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/common/chrome_icon_resources_win.h" 11 #include "chrome/common/chrome_icon_resources_win.h"
12 #include "chrome/installer/util/installer_util_strings.h" 12 #include "chrome/installer/util/installer_util_strings.h"
13 #include "chrome/installer/util/updating_app_registration_data.h" 13 #include "chrome/installer/util/updating_app_registration_data.h"
14 14
15 namespace { 15 namespace {
16 16
17 const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}"; 17 const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}";
18 const wchar_t kChannelName[] = L"canary"; 18 const wchar_t kChannelName[] = L"canary";
19 const wchar_t kBrowserAppId[] = L"ChromeCanary"; 19 const wchar_t kBrowserAppId[] = L"ChromeCanary";
20 const wchar_t kBrowserProgIdPrefix[] = L"ChromeSSHTM"; 20 const wchar_t kBrowserProgIdPrefix[] = L"ChromeSSHTM";
21 const wchar_t kBrowserProgIdDesc[] = L"Chrome Canary HTML Document"; 21 const wchar_t kBrowserProgIdDesc[] = L"Chrome Canary HTML Document";
22 const wchar_t kCommandExecuteImplUuid[] = 22 const wchar_t kCommandExecuteImplUuid[] =
23 L"{1BEAC3E3-B852-44F4-B468-8906C062422E}"; 23 L"{1BEAC3E3-B852-44F4-B468-8906C062422E}";
24 24
25 } // namespace 25 } // namespace
26 26
27 GoogleChromeSxSDistribution::GoogleChromeSxSDistribution() 27 GoogleChromeSxSDistribution::GoogleChromeSxSDistribution()
28 : GoogleChromeDistribution(scoped_ptr<AppRegistrationData>( 28 : GoogleChromeDistribution(std::unique_ptr<AppRegistrationData>(
29 new UpdatingAppRegistrationData(kChromeSxSGuid))) { 29 new UpdatingAppRegistrationData(kChromeSxSGuid))) {}
30 }
31 30
32 base::string16 GoogleChromeSxSDistribution::GetBaseAppName() { 31 base::string16 GoogleChromeSxSDistribution::GetBaseAppName() {
33 return L"Google Chrome Canary"; 32 return L"Google Chrome Canary";
34 } 33 }
35 34
36 base::string16 GoogleChromeSxSDistribution::GetShortcutName( 35 base::string16 GoogleChromeSxSDistribution::GetShortcutName(
37 ShortcutType shortcut_type) { 36 ShortcutType shortcut_type) {
38 switch (shortcut_type) { 37 switch (shortcut_type) {
39 case SHORTCUT_APP_LAUNCHER: 38 case SHORTCUT_APP_LAUNCHER:
40 return installer::GetLocalizedString( 39 return installer::GetLocalizedString(
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 return true; 103 return true;
105 } 104 }
106 105
107 bool GoogleChromeSxSDistribution::HasUserExperiments() { 106 bool GoogleChromeSxSDistribution::HasUserExperiments() {
108 return true; 107 return true;
109 } 108 }
110 109
111 base::string16 GoogleChromeSxSDistribution::ChannelName() { 110 base::string16 GoogleChromeSxSDistribution::ChannelName() {
112 return kChannelName; 111 return kChannelName;
113 } 112 }
OLDNEW
« no previous file with comments | « chrome/installer/util/google_chrome_distribution_dummy.cc ('k') | chrome/installer/util/google_update_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698