[Android] Added UMA for search by image context menu.
[chromium-blink-merge.git] / chrome / installer / util / google_chrome_sxs_distribution.cc
blob5224a8cfef6a47566c57bd631ae2254afc59f6d0
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
3 // found in the LICENSE file.
4 //
5 // This file defines implementation of GoogleChromeSxSDistribution.
7 #include "chrome/installer/util/google_chrome_sxs_distribution.h"
9 #include "base/command_line.h"
10 #include "base/logging.h"
12 #include "installer_util_strings.h" // NOLINT
14 namespace {
16 const wchar_t kChromeSxSGuid[] = L"{4ea16ac7-fd5a-47c3-875b-dbf4a2008c20}";
17 const wchar_t kChannelName[] = L"canary";
18 const wchar_t kBrowserAppId[] = L"ChromeCanary";
19 const int kSxSIconIndex = 4;
21 } // namespace
23 GoogleChromeSxSDistribution::GoogleChromeSxSDistribution()
24 : GoogleChromeDistribution() {
25 GoogleChromeDistribution::set_product_guid(kChromeSxSGuid);
28 string16 GoogleChromeSxSDistribution::GetBaseAppName() {
29 return L"Google Chrome Canary";
32 string16 GoogleChromeSxSDistribution::GetAppShortCutName() {
33 const string16& shortcut_name =
34 installer::GetLocalizedString(IDS_SXS_SHORTCUT_NAME_BASE);
35 return shortcut_name;
38 string16 GoogleChromeSxSDistribution::GetBaseAppId() {
39 return kBrowserAppId;
42 string16 GoogleChromeSxSDistribution::GetInstallSubDir() {
43 return GoogleChromeDistribution::GetInstallSubDir().append(
44 installer::kSxSSuffix);
47 string16 GoogleChromeSxSDistribution::GetUninstallRegPath() {
48 return GoogleChromeDistribution::GetUninstallRegPath().append(
49 installer::kSxSSuffix);
52 bool GoogleChromeSxSDistribution::CanSetAsDefault() {
53 return false;
56 int GoogleChromeSxSDistribution::GetIconIndex() {
57 return kSxSIconIndex;
60 bool GoogleChromeSxSDistribution::GetChromeChannel(string16* channel) {
61 *channel = kChannelName;
62 return true;
65 bool GoogleChromeSxSDistribution::GetCommandExecuteImplClsid(
66 string16* handler_class_uuid) {
67 return false;
70 bool GoogleChromeSxSDistribution::AppHostIsSupported() {
71 return false;
74 bool GoogleChromeSxSDistribution::ShouldSetExperimentLabels() {
75 return true;
78 bool GoogleChromeSxSDistribution::HasUserExperiments() {
79 return true;
82 string16 GoogleChromeSxSDistribution::ChannelName() {
83 return kChannelName;