diff options
author | stevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-19 17:23:10 +0000 |
---|---|---|
committer | stevet@chromium.org <stevet@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-19 17:23:10 +0000 |
commit | 3ad9f6efd5e32fe5b465eb839b9669c60dd3865e (patch) | |
tree | c875b0427052207de9f948c8b9e04f54a521ac65 /chrome/common/pref_names.cc | |
parent | e2ad553f4153c58c61cbbc7336240df20ed480cf (diff) | |
download | chromium_src-3ad9f6efd5e32fe5b465eb839b9669c60dd3865e.zip chromium_src-3ad9f6efd5e32fe5b465eb839b9669c60dd3865e.tar.gz chromium_src-3ad9f6efd5e32fe5b465eb839b9669c60dd3865e.tar.bz2 |
Add a startup check to create profile shortcuts for legacy Chrome profiles.
We do this by adding a per-profile pref that tracks whether or not a shortcut has been created for it. We check that flag at Profile startup and create a new shortcut if needed (while setting the flag to avoid creating future shortcuts).
BUG=109447
TEST=Start Chrome in v16 or v17 and create a new profile. Update Chrome to the latest version (including this patch) and ensure that starting a window with one of the two original profiles creates a desktop shortcut with that Profile's data. Ensure that if we then delete the shortcut for the profile, but start a new window for the profile, another shortcut is not created.
Review URL: http://codereview.chromium.org/9253016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pref_names.cc')
-rw-r--r-- | chrome/common/pref_names.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/pref_names.cc b/chrome/common/pref_names.cc index 274d17c..5327c70 100644 --- a/chrome/common/pref_names.cc +++ b/chrome/common/pref_names.cc @@ -818,6 +818,10 @@ const char kDefaultZoomLevel[] = "profile.default_zoom_level"; // be displayed at the default zoom level. const char kPerHostZoomLevels[] = "profile.per_host_zoom_levels"; +// Boolean that specifies whether or not a shortcut has been created for this +// profile in multi-profiles mode. +const char kProfileShortcutCreated[] = "profile.shortcut_created"; + // Boolean that is true if Autofill is enabled and allowed to save profile data. const char kAutofillEnabled[] = "autofill.enabled"; |