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

Side by Side Diff: chrome/browser/component_updater/recovery_component_installer.h

Issue 359443002: Elevated install of recovery component when needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment out unused function on chromeos Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/component_updater/recovery_component_installer.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ 5 #ifndef CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
6 #define CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ 6 #define CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 9
10 class PrefRegistrySimple; 10 class PrefRegistrySimple;
11 class PrefService; 11 class PrefService;
12 12
13 namespace component_updater { 13 namespace component_updater {
14 14
15 class ComponentUpdateService; 15 class ComponentUpdateService;
16 16
17 // Component update registration for the recovery component. The job of the 17 // Component update registration for the recovery component. The job of the
18 // recovery component is to repair the chrome installation or repair the Google 18 // recovery component is to repair the chrome installation or repair the Google
19 // update installation. This is a last resort safety mechanism. 19 // update installation. This is a last resort safety mechanism.
20 void RegisterRecoveryComponent(ComponentUpdateService* cus, PrefService* prefs); 20 void RegisterRecoveryComponent(ComponentUpdateService* cus, PrefService* prefs);
21 21
22 // Registers user preferences related to the recovery component. 22 // Registers user preferences related to the recovery component.
23 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry); 23 void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry);
24 24
25 // Notifies recovery component that agreed elevated install, so that it 25 // Notifies the recovery component that the user has accepted the elevation
26 // can launches an elevated install process. After that, clears 26 // prompt. Clears the state of prefs::kRecoveryComponentNeedsElevation after the
27 // preference flag prefs::kRecoveryComponentNeedsElevation. 27 // notification.
28 // Note: the function is yet to be implemented.
29 void AcceptedElevatedRecoveryInstall(PrefService* prefs); 28 void AcceptedElevatedRecoveryInstall(PrefService* prefs);
30 29
31 // Notifies recovery component that elevated install is declined, so that it can 30 // Notifies recovery component that the elevated install has been declined.
32 // removes the setup files. After that, clears preference flag 31 // Clears the flag prefs::kRecoveryComponentNeedsElevation.
33 // prefs::kRecoveryComponentNeedsElevation.
34 // Note: the function is yet to be implemented.
35 void DeclinedElevatedRecoveryInstall(PrefService* prefs); 32 void DeclinedElevatedRecoveryInstall(PrefService* prefs);
36 33
37 } // namespace component_updater 34 } // namespace component_updater
38 35
39 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_ 36 #endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/component_updater/recovery_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698