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

Issue 17261016: When app shortcuts are enabled, do a once-off creation of all shortcuts. (Closed)

Created:
7 years, 6 months ago by jackhou1
Modified:
7 years, 6 months ago
CC:
chromium-reviews, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

When app shortcuts are enabled, do a once-off creation of all shortcuts. This adds a boolean (kAppShortcutsEnabled) to user prefs. At startup, ShortcutManager checks the pref and sets the current value. On a transition from false to true, ShortcutManager iterates over all apps and creates shortcuts as if the app is being installed. BUG=249189 TEST=Delete app shortcuts from the OS applications folder. Start Chrome, the shortcuts should be created. Delete the shortcuts again. Restart Chrome, the shortcuts are not created a second time. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207832

Patch Set 1 #

Total comments: 22

Patch Set 2 : Address comments. Fix tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -3 lines) Patch
M apps/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
M apps/pref_names.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M apps/pref_names.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M apps/prefs.h View 1 chunk +7 lines, -0 lines 0 comments Download
M apps/prefs.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M apps/shortcut_manager.h View 2 chunks +6 lines, -0 lines 0 comments Download
M apps/shortcut_manager.cc View 1 5 chunks +58 lines, -3 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
jackhou1
7 years, 6 months ago (2013-06-20 05:37:53 UTC) #1
benwells
lgtm with nits https://codereview.chromium.org/17261016/diff/1/apps/DEPS File apps/DEPS (right): https://codereview.chromium.org/17261016/diff/1/apps/DEPS#newcode27 apps/DEPS:27: "+components/user_prefs/pref_registry_syncable.h", nit: move out of temporary ...
7 years, 6 months ago (2013-06-20 08:54:32 UTC) #2
Matt Giuca
LGTM with nits. https://codereview.chromium.org/17261016/diff/1/apps/pref_names.cc File apps/pref_names.cc (right): https://codereview.chromium.org/17261016/diff/1/apps/pref_names.cc#newcode33 apps/pref_names.cc:33: "apps.app_shortcuts_enabled"; Should fit on one line. ...
7 years, 6 months ago (2013-06-20 10:19:18 UTC) #3
jackhou1
https://codereview.chromium.org/17261016/diff/1/apps/DEPS File apps/DEPS (right): https://codereview.chromium.org/17261016/diff/1/apps/DEPS#newcode27 apps/DEPS:27: "+components/user_prefs/pref_registry_syncable.h", On 2013/06/20 08:54:32, benwells wrote: > nit: move ...
7 years, 6 months ago (2013-06-20 11:03:22 UTC) #4
jackhou1
mnissler, could you please review for OWNERS in chrome/browser/prefs?
7 years, 6 months ago (2013-06-20 11:15:44 UTC) #5
Mattias Nissler (ping if slow)
chrome/browser/prefs LGTM
7 years, 6 months ago (2013-06-20 16:28:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/17261016/8003
7 years, 6 months ago (2013-06-20 23:15:54 UTC) #7
Matt Giuca
https://codereview.chromium.org/17261016/diff/1/apps/prefs.cc File apps/prefs.cc (right): https://codereview.chromium.org/17261016/diff/1/apps/prefs.cc#newcode37 apps/prefs.cc:37: // Indicates whether app shortcuts are enabled. For future ...
7 years, 6 months ago (2013-06-20 23:42:20 UTC) #8
commit-bot: I haz the power
7 years, 6 months ago (2013-06-21 15:34:46 UTC) #9
Message was sent while issue was closed.
Change committed as 207832

Powered by Google App Engine
This is Rietveld 408576698