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

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

Issue 304673004: Cause mini_installer tests to noop on component builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dear Greg. Created 6 years, 6 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Returns true if --app-host is on the command line. 49 // Returns true if --app-host is on the command line.
50 bool has_app_host() const { return has_app_host_; } 50 bool has_app_host() const { return has_app_host_; }
51 51
52 // Returns true if --multi-install is on the command line. 52 // Returns true if --multi-install is on the command line.
53 bool is_multi_install() const { return is_multi_install_; } 53 bool is_multi_install() const { return is_multi_install_; }
54 54
55 // Returns true if --system-level is on the command line. 55 // Returns true if --system-level is on the command line.
56 bool is_system_level() const { return is_system_level_; } 56 bool is_system_level() const { return is_system_level_; }
57 57
58 // 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
60 // a component install or 0 otherwise.
61 bool query_component_build() const { return query_component_build_; }
62
58 protected: 63 protected:
59 void Clear(); 64 void Clear();
60 bool InitializeFromCommandLine(const wchar_t* command_line); 65 bool InitializeFromCommandLine(const wchar_t* command_line);
61 66
62 wchar_t** args_; 67 wchar_t** args_;
63 const wchar_t* chrome_app_guid_; 68 const wchar_t* chrome_app_guid_;
64 const wchar_t* command_line_; 69 const wchar_t* command_line_;
65 int argument_count_; 70 int argument_count_;
66 Operation operation_; 71 Operation operation_;
67 bool has_chrome_; 72 bool has_chrome_;
68 bool has_chrome_frame_; 73 bool has_chrome_frame_;
69 bool has_app_host_; 74 bool has_app_host_;
70 bool is_multi_install_; 75 bool is_multi_install_;
71 bool is_system_level_; 76 bool is_system_level_;
77 bool query_component_build_;
72 78
73 private: 79 private:
74 Configuration(const Configuration&); 80 Configuration(const Configuration&);
75 Configuration& operator=(const Configuration&); 81 Configuration& operator=(const Configuration&);
76 }; 82 };
77 83
78 } // namespace mini_installer 84 } // namespace mini_installer
79 85
80 #endif // CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_ 86 #endif // CHROME_INSTALLER_MINI_INSTALLER_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/mini_installer/configuration.cc » ('j') | chrome/test/mini_installer/test_installer.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698