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

Side by Side Diff: chrome/installer/setup/setup_util.h

Issue 2507753002: Install the chrome event log provider together with the browser. (Closed)
Patch Set: Fix formatting. Created 4 years 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 // This file declares util functions for setup project. It also declares a 5 // This file declares util functions for setup project. It also declares a
6 // few functions that the Chrome component updater uses for patching binary 6 // few functions that the Chrome component updater uses for patching binary
7 // deltas. 7 // deltas.
8 8
9 #ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 9 #ifndef CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
10 #define CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 10 #define CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool IsDowngradeAllowed(const MasterPreferences& prefs); 137 bool IsDowngradeAllowed(const MasterPreferences& prefs);
138 138
139 // Returns true if Chrome has been run within the last 28 days. 139 // Returns true if Chrome has been run within the last 28 days.
140 bool IsChromeActivelyUsed(const InstallerState& installer_state); 140 bool IsChromeActivelyUsed(const InstallerState& installer_state);
141 141
142 // Records UMA metrics for unpack result. 142 // Records UMA metrics for unpack result.
143 void RecordUnPackMetrics(UnPackStatus unpack_status, 143 void RecordUnPackMetrics(UnPackStatus unpack_status,
144 int32_t status, 144 int32_t status,
145 UnPackConsumer consumer); 145 UnPackConsumer consumer);
146 146
147 // Register Chrome's EventLog message provider dll.
148 void RegisterEventLogProvider(const base::FilePath& install_directory,
149 const std::string& version);
150
151 // De-register Chrome's EventLog message provider dll.
152 void DeRegisterEventLogProvider();
153
147 // This class will enable the privilege defined by |privilege_name| on the 154 // This class will enable the privilege defined by |privilege_name| on the
148 // current process' token. The privilege will be disabled upon the 155 // current process' token. The privilege will be disabled upon the
149 // ScopedTokenPrivilege's destruction (unless it was already enabled when the 156 // ScopedTokenPrivilege's destruction (unless it was already enabled when the
150 // ScopedTokenPrivilege object was constructed). 157 // ScopedTokenPrivilege object was constructed).
151 // Some privileges might require admin rights to be enabled (check is_enabled() 158 // Some privileges might require admin rights to be enabled (check is_enabled()
152 // to know whether |privilege_name| was successfully enabled). 159 // to know whether |privilege_name| was successfully enabled).
153 class ScopedTokenPrivilege { 160 class ScopedTokenPrivilege {
154 public: 161 public:
155 explicit ScopedTokenPrivilege(const wchar_t* privilege_name); 162 explicit ScopedTokenPrivilege(const wchar_t* privilege_name);
156 ~ScopedTokenPrivilege(); 163 ~ScopedTokenPrivilege();
(...skipping 12 matching lines...) Expand all
169 // The previous state of the privilege this object is responsible for. As set 176 // The previous state of the privilege this object is responsible for. As set
170 // by AdjustTokenPrivileges() upon construction. 177 // by AdjustTokenPrivileges() upon construction.
171 TOKEN_PRIVILEGES previous_privileges_; 178 TOKEN_PRIVILEGES previous_privileges_;
172 179
173 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedTokenPrivilege); 180 DISALLOW_IMPLICIT_CONSTRUCTORS(ScopedTokenPrivilege);
174 }; 181 };
175 182
176 } // namespace installer 183 } // namespace installer
177 184
178 #endif // CHROME_INSTALLER_SETUP_SETUP_UTIL_H_ 185 #endif // CHROME_INSTALLER_SETUP_SETUP_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698