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

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

Issue 6153003: Refactor install.cc into the work item parts and the non-work item parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: PostMergeTest3AddingMissingFile Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/installer/util/installation_state.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_INSTALLER_STATE_H_ 5 #ifndef CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_
6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ 6 #define CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 31
32 // Initializes |this| based on the current operation. 32 // Initializes |this| based on the current operation.
33 void Initialize(const MasterPreferences& prefs, 33 void Initialize(const MasterPreferences& prefs,
34 const InstallationState& machine_state); 34 const InstallationState& machine_state);
35 35
36 // true if system-level, false if user-level. 36 // true if system-level, false if user-level.
37 bool system_install() const { return system_install_; } 37 bool system_install() const { return system_install_; }
38 38
39 Operation operation() const { return operation_; } 39 Operation operation() const { return operation_; }
40 40
41 BrowserDistribution::Type GetInstallOperand() const {
42 return install_operand_;
43 }
44
45 // The ClientState key by which we interact with Google Update. 41 // The ClientState key by which we interact with Google Update.
46 const std::wstring& state_key() const { return state_key_; } 42 const std::wstring& state_key() const { return state_key_; }
47 43
48 private: 44 protected:
49 bool IsMultiInstallUpdate(const MasterPreferences& prefs, 45 bool IsMultiInstallUpdate(const MasterPreferences& prefs,
50 const InstallationState& machine_state); 46 const InstallationState& machine_state);
51 47
52 Operation operation_; 48 Operation operation_;
53 BrowserDistribution::Type install_operand_;
54 std::wstring state_key_; 49 std::wstring state_key_;
55 bool system_install_; 50 bool system_install_;
56 51
52 private:
57 DISALLOW_COPY_AND_ASSIGN(InstallerState); 53 DISALLOW_COPY_AND_ASSIGN(InstallerState);
58 }; // class InstallerState 54 }; // class InstallerState
59 55
60 } // namespace installer 56 } // namespace installer
61 57
62 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_ 58 #endif // CHROME_INSTALLER_UTIL_INSTALLER_STATE_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/installation_state.cc ('k') | chrome/installer/util/installer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698