diff options
author | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-25 17:09:10 +0000 |
---|---|---|
committer | rogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-25 17:09:10 +0000 |
commit | 86c6b9e3ffc13f4dde688ab918d77b4a753c1c3a (patch) | |
tree | 27f6497a09626a37fc6986aaf60da608b8a1414b /chrome/common/pref_names.cc | |
parent | 80e92967fa65751e7794aadaa89d5d9ee7a25351 (diff) | |
download | chromium_src-86c6b9e3ffc13f4dde688ab918d77b4a753c1c3a.zip chromium_src-86c6b9e3ffc13f4dde688ab918d77b4a753c1c3a.tar.gz chromium_src-86c6b9e3ffc13f4dde688ab918d77b4a753c1c3a.tar.bz2 |
Remove race condition when installing default apps into a new profile.
BUG=99547
TEST=Install chrome and stop it as quickly as possible when the window opens.
Or create a new profile and close all windows as soon as the new profile's
window opens. Do that as often as you like. Make sure that eventually,
after leaving the windows open, that all default apps are correctly installed.
Review URL: http://codereview.chromium.org/8245018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107144 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_names.cc')
-rw-r--r-- | chrome/common/pref_names.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index e51f1c1..5e48bcc 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -382,6 +382,14 @@ const char kMultipleProfilePrefMigration[] = // preferences are not lost. const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; +// An integer representing the state of the default apps installation process. +// This value is persisted in the profile's user preferences because the process +// is async, and the user may have stopped chrome in the middle. The next time +// the profile is opened, the process will continue from where it left off. +// +// See possible values in external_extension_provider_impl.cc. +const char kDefaultAppsInstallState[] = "default_apps_install_state"; + #if defined(OS_CHROMEOS) // An integer pref to initially mute volume if 1. const char kAudioMute[] = "settings.audio.mute"; |