Chromium Code Reviews| Index: chrome/browser/ui/startup/startup_browser_creator.cc |
| diff --git a/chrome/browser/ui/startup/startup_browser_creator.cc b/chrome/browser/ui/startup/startup_browser_creator.cc |
| index 994ee56a84c3b536e269df86b019f223e1604019..efb913d43c45309b0733a3281b1917d60c4d0e09 100644 |
| --- a/chrome/browser/ui/startup/startup_browser_creator.cc |
| +++ b/chrome/browser/ui/startup/startup_browser_creator.cc |
| @@ -105,6 +105,7 @@ |
| #if defined(OS_WIN) |
| #include "base/win/windows_version.h" |
| #include "chrome/browser/metrics/jumplist_metrics_win.h" |
| +#include "chrome/browser/safe_browsing/chrome_cleaner/settings_resetter_win.h" |
| #endif |
| #if BUILDFLAG(ENABLE_PRINT_PREVIEW) |
| @@ -382,6 +383,15 @@ bool StartupBrowserCreator::LaunchBrowser( |
| profile_launch_observer.Get().AddLaunched(profile); |
| +#if defined(OS_WIN) |
|
Peter Kasting
2017/06/14 17:39:16
Is this OS_WIN because we only ever want it to be
tmartino
2017/06/14 21:48:35
+1 regardless of where this code lives
ftirelo
2017/06/15 03:41:23
Done.
ftirelo
2017/06/15 03:41:24
Good idea. Done.
|
| + // Reset settings for the current profile if it's tagged to be reset after a |
| + // complete run of the Chrome Cleanup tool. |
| + if (safe_browsing::PostCleanupSettingsResetter::IsEnabled()) { |
| + safe_browsing::PostCleanupSettingsResetter().ResetTaggedProfiles( |
|
Peter Kasting
2017/06/14 17:39:16
It feels as if this isn't really part of "launchin
tmartino
2017/06/14 21:48:35
Spoke offline with ftirelo and alito. The major th
ftirelo
2017/06/15 03:41:23
Done.
ftirelo
2017/06/15 03:41:24
Done.
|
| + {profile}, base::Bind([] {}), nullptr /* use default delegate */); |
|
Peter Kasting
2017/06/14 17:39:16
Nit: Can you just use OnceClosure() for the penult
ftirelo
2017/06/15 03:41:23
Unfortunately, OnceClosure() will create an unboun
Peter Kasting
2017/06/15 06:28:19
Can we fix that? I thought the basic (non-Once) c
ftirelo
2017/06/15 17:06:36
I'm not sure of the consequences of the change and
|
| + } |
| +#endif |
| + |
| #if defined(OS_CHROMEOS) |
| chromeos::ProfileHelper::Get()->ProfileStartup(profile, process_startup); |
| #endif |