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

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

Issue 13864015: Move app launcher and chrome apps shortcut strings into the installer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@migrate_app_id_fix
Patch Set: rebase, move app launcher and chrome app strings into the installer Created 7 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
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 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ 5 #ifndef CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_
6 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ 6 #define CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_
7 7
8 #include "base/string16.h" 8 #include "base/string16.h"
9 #include "chrome/installer/util/browser_distribution.h" 9 #include "chrome/installer/util/browser_distribution.h"
10 #include "chrome/installer/util/google_chrome_distribution.h" 10 #include "chrome/installer/util/google_chrome_distribution.h"
11 #include "chrome/installer/util/l10n_string_util.h" 11 #include "chrome/installer/util/l10n_string_util.h"
12 #include "chrome/installer/util/util_constants.h" 12 #include "chrome/installer/util/util_constants.h"
13 13
14 // GoogleChromeSxSDistribution encapsulates properties of Google Chrome Sxs 14 // GoogleChromeSxSDistribution encapsulates properties of Google Chrome Sxs
15 // distribution which can co-exist with other Google Chrome distributions. 15 // distribution which can co-exist with other Google Chrome distributions.
16 // Google Chrome Sxs distribution is installed to a different path, runs 16 // Google Chrome Sxs distribution is installed to a different path, runs
17 // alongside with normally installed Google Chrome, and is updated separately. 17 // alongside with normally installed Google Chrome, and is updated separately.
18 // It is mainly used for developer preview and testing, and is disabled for 18 // It is mainly used for developer preview and testing, and is disabled for
19 // system level install and setting as default browser. 19 // system level install and setting as default browser.
20 class GoogleChromeSxSDistribution : public GoogleChromeDistribution { 20 class GoogleChromeSxSDistribution : public GoogleChromeDistribution {
21 public: 21 public:
22 virtual string16 GetBaseAppName() OVERRIDE; 22 virtual string16 GetBaseAppName() OVERRIDE;
23 virtual string16 GetAppShortCutName() OVERRIDE; 23 virtual string16 GetAppShortCutName() OVERRIDE;
24 virtual string16 GetAppListShortcutName() OVERRIDE;
25 virtual string16 GetAppShortcutsSubdirName() OVERRIDE;
24 virtual string16 GetBaseAppId() OVERRIDE; 26 virtual string16 GetBaseAppId() OVERRIDE;
25 virtual string16 GetInstallSubDir() OVERRIDE; 27 virtual string16 GetInstallSubDir() OVERRIDE;
26 virtual string16 GetUninstallRegPath() OVERRIDE; 28 virtual string16 GetUninstallRegPath() OVERRIDE;
27 virtual bool CanSetAsDefault() OVERRIDE; 29 virtual bool CanSetAsDefault() OVERRIDE;
28 virtual int GetIconIndex() OVERRIDE; 30 virtual int GetIconIndex() OVERRIDE;
29 virtual bool GetChromeChannel(string16* channel) OVERRIDE; 31 virtual bool GetChromeChannel(string16* channel) OVERRIDE;
30 virtual bool GetCommandExecuteImplClsid( 32 virtual bool GetCommandExecuteImplClsid(
31 string16* handler_class_uuid) OVERRIDE; 33 string16* handler_class_uuid) OVERRIDE;
32 virtual bool AppHostIsSupported() OVERRIDE; 34 virtual bool AppHostIsSupported() OVERRIDE;
33 virtual bool ShouldSetExperimentLabels() OVERRIDE; 35 virtual bool ShouldSetExperimentLabels() OVERRIDE;
34 virtual bool HasUserExperiments() OVERRIDE; 36 virtual bool HasUserExperiments() OVERRIDE;
35 // returns the channel name for GoogleChromeSxSDistribution 37 // returns the channel name for GoogleChromeSxSDistribution
36 static string16 ChannelName(); 38 static string16 ChannelName();
37 private: 39 private:
38 friend class BrowserDistribution; 40 friend class BrowserDistribution;
39 41
40 // Disallow construction from non-friends. 42 // Disallow construction from non-friends.
41 GoogleChromeSxSDistribution(); 43 GoogleChromeSxSDistribution();
42 }; 44 };
43 45
44 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_ 46 #endif // CHROME_INSTALLER_UTIL_GOOGLE_CHROME_SXS_DISTRIBUTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698