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

Unified Diff: chrome/browser/first_run/first_run_internal.h

Issue 20743002: Do not CreateSentinel until after the process singleton has been grabbed by the current process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge latest version of https://codereview.chromium.org/20483002/ Created 7 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
« no previous file with comments | « chrome/browser/first_run/first_run.cc ('k') | chrome/browser/first_run/first_run_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/first_run/first_run_internal.h
diff --git a/chrome/browser/first_run/first_run_internal.h b/chrome/browser/first_run/first_run_internal.h
index eec3cf8f27c7774fab02fa126316b06fa47ce8da..e5162b424cb38bc5f97d94b7c14822a5e01f8bdb 100644
--- a/chrome/browser/first_run/first_run_internal.h
+++ b/chrome/browser/first_run/first_run_internal.h
@@ -23,7 +23,9 @@ namespace internal {
enum FirstRunState {
FIRST_RUN_UNKNOWN, // The state is not tested or set yet.
FIRST_RUN_TRUE,
- FIRST_RUN_FALSE
+ FIRST_RUN_FALSE,
+ FIRST_RUN_CANCEL, // This shouldn't be considered first run but the sentinel
+ // should be created anyways.
};
// This variable should only be accessed through IsChromeFirstRun().
@@ -48,6 +50,9 @@ void SetupMasterPrefsFromInstallPrefs(
void SetDefaultBrowser(installer::MasterPreferences* install_prefs);
+// Creates the sentinel file that signals that chrome has been configured.
+bool CreateSentinel();
+
// -- Platform-specific functions --
void DoPostImportPlatformSpecificTasks(Profile* profile);
« no previous file with comments | « chrome/browser/first_run/first_run.cc ('k') | chrome/browser/first_run/first_run_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698