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

Unified Diff: chrome/browser/ui/webui/options/reset_profile_settings_handler.h

Issue 62193002: Integrate UI and reset logic into AutomaticProfileResetter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win compile error introduce by rebase. Created 7 years, 1 month 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/ui/webui/options/reset_profile_settings_handler.h
diff --git a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h b/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
index c6f51ef845b441390b998736383199e58a2b8cdd..c09e092a6eacec9f64105a131948595b55fc99a8 100644
--- a/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
+++ b/chrome/browser/ui/webui/options/reset_profile_settings_handler.h
@@ -14,6 +14,7 @@ class DictionaryValue;
class ListValue;
} // namespace base
+class AutomaticProfileResetter;
class BrandcodeConfigFetcher;
class ProfileResetter;
class ResettableSettingsSnapshot;
@@ -33,6 +34,7 @@ class ResetProfileSettingsHandler
base::DictionaryValue* localized_strings) OVERRIDE;
virtual void InitializeHandler() OVERRIDE;
virtual void InitializePage() OVERRIDE;
+ virtual void Uninitialize() OVERRIDE;
// WebUIMessageHandler implementation.
virtual void RegisterMessages() OVERRIDE;
@@ -54,6 +56,13 @@ class ResetProfileSettingsHandler
// gave his consent to upload broken settings to Google for analysis.
void ResetProfile(bool send_settings);
+ // Destroyed with the Profile, thus it should outlive us.
+ AutomaticProfileResetter* automatic_profile_resetter_;
+
+ // Records whether or not the Profile Reset confirmation dialog was opened at
+ // least once during the lifetime of the settings page.
+ bool has_shown_confirmation_dialog_;
+
scoped_ptr<ProfileResetter> resetter_;
scoped_ptr<BrandcodeConfigFetcher> config_fetcher_;

Powered by Google App Engine
This is Rietveld 408576698