diff options
author | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-05 16:29:58 +0000 |
---|---|---|
committer | marja@chromium.org <marja@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-05 16:29:58 +0000 |
commit | 88c887847a7e19356adccb1b94cc79712343ca93 (patch) | |
tree | eff0f67cd3e24ccaf2d7310f73eaed3035a5cd32 /chrome/common | |
parent | a995d04ab4c452670e4b14d83182ccea49aad41b (diff) | |
download | chromium_src-88c887847a7e19356adccb1b94cc79712343ca93.zip chromium_src-88c887847a7e19356adccb1b94cc79712343ca93.tar.gz chromium_src-88c887847a7e19356adccb1b94cc79712343ca93.tar.bz2 |
Store the "browser autorestarted, last session must be restored" information in a preference.
This way ChromiumOS can run the same session restore code as Chrome.
BUG=1870
TEST=NONE
Review URL: http://codereview.chromium.org/8745015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112985 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/pref_names.cc | 3 | ||||
-rw-r--r-- | chrome/common/pref_names.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index eaee7c8..6743d18 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -1201,6 +1201,9 @@ const char kShutdownNumProcessesSlow[] = "shutdown.num_processes_slow"; // before shutting everything down. const char kRestartLastSessionOnShutdown[] = "restart.last.session.on.shutdown"; +// Set before autorestarting Chrome, cleared on clean exit. +const char kWasRestarted[] = "was.restarted"; + // Number of bookmarks/folders on the bookmark bar/other bookmark folder. const char kNumBookmarksOnBookmarkBar[] = "user_experience_metrics.num_bookmarks_on_bookmark_bar"; diff --git a/chrome/common/pref_names.h b/chrome/common/pref_names.h index e60d9a1..3fee3a1 100644 --- a/chrome/common/pref_names.h +++ b/chrome/common/pref_names.h @@ -423,6 +423,7 @@ extern const char kShutdownNumProcesses[]; extern const char kShutdownNumProcessesSlow[]; extern const char kRestartLastSessionOnShutdown[]; +extern const char kWasRestarted[]; extern const char kNumBookmarksOnBookmarkBar[]; extern const char kNumFoldersOnBookmarkBar[]; |