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

Unified Diff: chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc

Issue 2906103002: Post-cleanup settings reset. (Closed)
Patch Set: Use base::DoNothing Created 3 years, 6 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/ui/webui/settings/chrome_cleanup_handler.cc
diff --git a/chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc b/chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc
index 023ae0c169ddb7d3a22b42a12a9df0e751280e99..35a183d28454d11562542f8eca895d026d923bd2 100644
--- a/chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc
+++ b/chrome/browser/ui/webui/settings/chrome_cleanup_handler.cc
@@ -53,8 +53,8 @@ std::string IdleReasonToString(
} // namespace
-ChromeCleanupHandler::ChromeCleanupHandler()
- : controller_(ChromeCleanerController::GetInstance()) {}
+ChromeCleanupHandler::ChromeCleanupHandler(Profile* profile)
+ : controller_(ChromeCleanerController::GetInstance()), profile_(profile) {}
ChromeCleanupHandler::~ChromeCleanupHandler() {
controller_->RemoveObserver(this);
@@ -146,7 +146,7 @@ void ChromeCleanupHandler::HandleStartCleanup(const base::ListValue* args) {
DCHECK_EQ(0U, args->GetSize());
controller_->ReplyWithUserResponse(
- ChromeCleanerController::UserResponse::kAccepted);
+ profile_, ChromeCleanerController::UserResponse::kAccepted);
}
} // namespace settings
« no previous file with comments | « chrome/browser/ui/webui/settings/chrome_cleanup_handler.h ('k') | chrome/browser/ui/webui/settings/md_settings_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698