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

Unified Diff: chrome/browser/component_updater/recovery_component_installer.h

Issue 325433002: Elevated install of recovery component (UI part). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/component_updater/recovery_component_installer.h
diff --git a/chrome/browser/component_updater/recovery_component_installer.h b/chrome/browser/component_updater/recovery_component_installer.h
index 260083decf1f7877fcff7543c023117bcdf95526..1a99430784085e1b1eac78bbd0334e4fd035d592 100644
--- a/chrome/browser/component_updater/recovery_component_installer.h
+++ b/chrome/browser/component_updater/recovery_component_installer.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
#define CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
+#include "base/callback_forward.h"
+
class PrefRegistrySimple;
class PrefService;
@@ -20,6 +22,12 @@ void RegisterRecoveryComponent(ComponentUpdateService* cus, PrefService* prefs);
// Register user preferences related to the recovery component.
void RegisterPrefsForRecoveryComponent(PrefRegistrySimple* registry);
+// When |elevation_allowed|, launches an elevated process to do recovery.
+// |callback| is called when the preference flag is set for external consumer
+// to check.
+void StartElevatedRecoveryProcess(
+ PrefService* prefs, bool elevation_allowed, const base::Closure& callback);
+
} // namespace component_updater
#endif // CHROME_BROWSER_COMPONENT_UPDATER_RECOVERY_COMPONENT_INSTALLER_H_
« no previous file with comments | « chrome/browser/chrome_notification_types.h ('k') | chrome/browser/component_updater/recovery_component_installer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698