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