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

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

Issue 271673006: Eliminate all code related to the AutomaticProfileResetter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added hard deadline for removing migration code. Created 6 years, 5 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 f93de443c0dd220e67a6d1fbcaed5a69462a7798..8b7d228b7dd18193cf745c7b385e51668336d1cf 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 unimplemented, 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& base) {
gab 2014/07/30 16:59:25 I assume "base" is the user_data_dir or the profil
engedy 2014/07/30 18:29:48 Done.
+ base::FilePath memento_path =
+ base.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::PostDelayedTask(
+ BrowserThread::FILE, FROM_HERE,
gab 2014/07/30 16:59:25 I think the BlockingPool() is prefered to the FILE
engedy 2014/07/30 18:29:48 Done.
+ 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