summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h')
-rw-r--r--chromium/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/chromium/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h b/chromium/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h
index 199ca791fe2..237e11484a1 100644
--- a/chromium/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h
+++ b/chromium/chrome/browser/ui/webui/settings/chrome_cleanup_handler.h
@@ -12,6 +12,7 @@
#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_controller_win.h"
#include "chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_scanner_results.h"
#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
+#include "components/prefs/pref_change_registrar.h"
class Profile;
@@ -45,9 +46,8 @@ class ChromeCleanupHandler
void OnLogsEnabledChanged(bool logs_enabled) override;
private:
- // Callback for the "dismissCleanupPage" message to hide the Cleanup page
- // from the settings.
- void HandleDismiss(const base::ListValue* args);
+ // Called when prefs::kSwReporterReportingEnabled changes.
+ void OnLogsEnabledPrefChanged();
// Callback for the "registerChromeCleanerObserver" message. This registers
// this object as an observer of the Chrome Cleanup global state and
@@ -92,6 +92,7 @@ class ChromeCleanupHandler
safe_browsing::ChromeCleanerController* controller_;
Profile* profile_;
+ PrefChangeRegistrar logs_enabled_pref_;
DISALLOW_COPY_AND_ASSIGN(ChromeCleanupHandler);
};