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_ |