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

Unified Diff: chrome/browser/chrome_browser_main_win.cc

Issue 2906103002: Post-cleanup settings reset. (Closed)
Patch Set: Created 3 years, 7 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/chrome_browser_main_win.cc
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index ea0e3a4cbfdb197e43788f01c10215580ff43d95..1a77c480d3efe2f2dae8759aa6302bff2761ac1a 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -38,6 +38,8 @@
#include "chrome/browser/first_run/first_run.h"
#include "chrome/browser/install_verification/win/install_verification.h"
#include "chrome/browser/profiles/profile_shortcut_manager.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_win.h"
+#include "chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.h"
#include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h"
#include "chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.h"
#include "chrome/browser/shell_integration.h"
@@ -385,6 +387,18 @@ void ChromeBrowserMainPartsWin::PostBrowserStart() {
did_run_updater_.reset(new DidRunUpdater);
#endif
+ if (base::FeatureList::IsEnabled(safe_browsing::kInBrowserCleanerUIFeature)) {
+ auto done = base::BindOnce([] {});
+ content::BrowserThread::PostAfterStartupTask(
+ FROM_HERE,
+ content::BrowserThread::GetTaskRunnerForThread(
+ content::BrowserThread::UI),
+ base::Bind(&safe_browsing::ResetCurrentProfilePostCleanupIfTagged,
+ base::Passed(&done), nullptr /* use default delegate */));
+ }
+
+ // TODO(ftirelo) Figure out how this should interact with the post-cleanup
+ // reset settings.
if (base::FeatureList::IsEnabled(safe_browsing::kSettingsResetPrompt)) {
content::BrowserThread::PostAfterStartupTask(
FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698