OLD | NEW |
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" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 DCHECK(shortcut_type == SHORTCUT_CHROME || | 95 DCHECK(shortcut_type == SHORTCUT_CHROME || |
96 shortcut_type == SHORTCUT_CHROME_ALTERNATE) << shortcut_type; | 96 shortcut_type == SHORTCUT_CHROME_ALTERNATE) << shortcut_type; |
97 return icon_resources::kSxSApplicationIndex; | 97 return icon_resources::kSxSApplicationIndex; |
98 } | 98 } |
99 | 99 |
100 bool GoogleChromeSxSDistribution::GetChromeChannel(base::string16* channel) { | 100 bool GoogleChromeSxSDistribution::GetChromeChannel(base::string16* channel) { |
101 *channel = kChannelName; | 101 *channel = kChannelName; |
102 return true; | 102 return true; |
103 } | 103 } |
104 | 104 |
105 bool GoogleChromeSxSDistribution::GetCommandExecuteImplClsid( | 105 base::string16 GoogleChromeSxSDistribution::GetCommandExecuteImplClsid() { |
106 base::string16* handler_class_uuid) { | 106 return kCommandExecuteImplUuid; |
107 if (handler_class_uuid) | |
108 *handler_class_uuid = kCommandExecuteImplUuid; | |
109 return true; | |
110 } | 107 } |
111 | 108 |
112 bool GoogleChromeSxSDistribution::ShouldSetExperimentLabels() { | 109 bool GoogleChromeSxSDistribution::ShouldSetExperimentLabels() { |
113 return true; | 110 return true; |
114 } | 111 } |
115 | 112 |
116 bool GoogleChromeSxSDistribution::HasUserExperiments() { | 113 bool GoogleChromeSxSDistribution::HasUserExperiments() { |
117 return true; | 114 return true; |
118 } | 115 } |
119 | 116 |
120 base::string16 GoogleChromeSxSDistribution::ChannelName() { | 117 base::string16 GoogleChromeSxSDistribution::ChannelName() { |
121 return kChannelName; | 118 return kChannelName; |
122 } | 119 } |
OLD | NEW |