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

Side by Side Diff: chrome/installer/mini_installer/configuration.h

Issue 811283002: [Installer] Cleaning up dead code for App Launcher / App Host installs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanups; handle ChannelInfo to remove '-apphost' and '-applauncher'. Created 5 years, 11 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_MINI_INSTALLER_CONFIGURATION_H_ 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_
6 #define CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_ 6 #define CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_
7 7
8 namespace mini_installer { 8 namespace mini_installer {
9 9
10 // A simple container of the mini_installer's configuration, as dictated by the 10 // A simple container of the mini_installer's configuration, as dictated by the
(...skipping 28 matching lines...) Expand all
39 // Returns the app guid to be used for Chrome. --chrome-sxs on the command 39 // Returns the app guid to be used for Chrome. --chrome-sxs on the command
40 // line makes this the canary's app guid. 40 // line makes this the canary's app guid.
41 const wchar_t* chrome_app_guid() const { return chrome_app_guid_; } 41 const wchar_t* chrome_app_guid() const { return chrome_app_guid_; }
42 42
43 // Returns true if --chrome is explicitly or implicitly on the command line. 43 // Returns true if --chrome is explicitly or implicitly on the command line.
44 bool has_chrome() const { return has_chrome_; } 44 bool has_chrome() const { return has_chrome_; }
45 45
46 // Returns true if --chrome-frame is on the command line. 46 // Returns true if --chrome-frame is on the command line.
47 bool has_chrome_frame() const { return has_chrome_frame_; } 47 bool has_chrome_frame() const { return has_chrome_frame_; }
48 48
49 // Returns true if --app-host is on the command line.
50 bool has_app_host() const { return has_app_host_; }
51
52 // Returns true if --multi-install is on the command line. 49 // Returns true if --multi-install is on the command line.
53 bool is_multi_install() const { return is_multi_install_; } 50 bool is_multi_install() const { return is_multi_install_; }
54 51
55 // Returns true if --system-level is on the command line. 52 // Returns true if --system-level is on the command line.
56 bool is_system_level() const { return is_system_level_; } 53 bool is_system_level() const { return is_system_level_; }
57 54
58 // Returns true if --query-component-build is on the command line. 55 // Returns true if --query-component-build is on the command line.
59 // This will cause mini_installer to exit and return 1 if this is 56 // This will cause mini_installer to exit and return 1 if this is
60 // a component install or 0 otherwise. 57 // a component install or 0 otherwise.
61 bool query_component_build() const { return query_component_build_; } 58 bool query_component_build() const { return query_component_build_; }
62 59
63 protected: 60 protected:
64 void Clear(); 61 void Clear();
65 bool InitializeFromCommandLine(const wchar_t* command_line); 62 bool InitializeFromCommandLine(const wchar_t* command_line);
66 63
67 wchar_t** args_; 64 wchar_t** args_;
68 const wchar_t* chrome_app_guid_; 65 const wchar_t* chrome_app_guid_;
69 const wchar_t* command_line_; 66 const wchar_t* command_line_;
70 int argument_count_; 67 int argument_count_;
71 Operation operation_; 68 Operation operation_;
72 bool has_chrome_; 69 bool has_chrome_;
73 bool has_chrome_frame_; 70 bool has_chrome_frame_;
74 bool has_app_host_;
75 bool is_multi_install_; 71 bool is_multi_install_;
76 bool is_system_level_; 72 bool is_system_level_;
77 bool query_component_build_; 73 bool query_component_build_;
78 74
79 private: 75 private:
80 Configuration(const Configuration&); 76 Configuration(const Configuration&);
81 Configuration& operator=(const Configuration&); 77 Configuration& operator=(const Configuration&);
82 }; 78 };
83 79
84 } // namespace mini_installer 80 } // namespace mini_installer
85 81
86 #endif // CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_ 82 #endif // CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698