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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 533183002: Revert "Eliminate all code related to the AutomaticProfileResetter." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 3 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 9cfe5359a26af2cbf1c6b47bb0931650131c5988..ce44ca2d259ed35169c2fa659ffd5ac946465215 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -282,17 +282,6 @@ PrefStore* CreateExtensionPrefStore(Profile* profile,
#endif
}
-#if !defined(OS_ANDROID)
-// Deletes the file that was used by the AutomaticProfileResetter service, which
-// has since been removed, to store that the prompt had already been shown.
-// 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
@@ -724,13 +713,6 @@ 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",

Powered by Google App Engine
This is Rietveld 408576698