Chromium Code Reviews| Index: chrome/browser/profiles/profile_impl.cc |
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
| index f93de443c0dd220e67a6d1fbcaed5a69462a7798..0c73dc14a8eaf17fffa22b08a3dd83b503252596 100644 |
| --- a/chrome/browser/profiles/profile_impl.cc |
| +++ b/chrome/browser/profiles/profile_impl.cc |
| @@ -273,6 +273,17 @@ PrefStore* CreateExtensionPrefStore(Profile* profile, |
| #endif |
| } |
| +#if !defined(OS_ANDROID) |
| +// Deletes the file that was used by the AutomaticProfileResetter service, which |
| +// has been since removed, to store that the prompt had already been shown. |
|
gab
2014/07/30 19:46:53
nit: s/has been since/has since been/
engedy
2014/07/31 08:10:50
Done.
|
| +// TODO(engedy): Remove this and caller in M42 or later. See crbug.com/398813. |
| +void DeleteResetPromptMementoFile(const base::FilePath& profile_dir) { |
| + base::FilePath memento_path = |
| + profile_dir.Append(FILE_PATH_LITERAL("Reset Prompt Memento")); |
| + base::DeleteFile(memento_path, false); |
| +} |
| +#endif |
| + |
| } // namespace |
| // static |
| @@ -638,6 +649,13 @@ void ProfileImpl::DoFinalInit() { |
| // as a URLDataSource early. |
| RegisterDomDistillerViewerSource(this); |
| +#if !defined(OS_ANDROID) |
| + BrowserThread::GetBlockingPool()->PostDelayedWorkerTask( |
| + FROM_HERE, |
| + base::Bind(&DeleteResetPromptMementoFile, GetPath()), |
| + base::TimeDelta::FromMilliseconds(2 * create_readme_delay_ms)); |
| +#endif |
| + |
| // Creation has been finished. |
| TRACE_EVENT_END1("browser", |
| "Profile::CreateProfile", |