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

Issue 12550006: Mac: Add a shortcut to open the Apps page from the bookmark bar. (Closed)

Created:
7 years, 9 months ago by beaudoin
Modified:
7 years, 9 months ago
CC:
chromium-reviews, tfarina, browser-components-watch_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Mac: Add a shortcut to open the Apps page from the bookmark bar. BUG=177377 TEST=Make sure that an app shortcut is available in the bookmark bar when instant extended is enabled, and that this button can be hidden/shown from the bookmark bar context menu. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=187428

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Answered asvitkine, added preference listener. #

Total comments: 5

Patch Set 3 : Fixed mac unit test compilation problems. #

Patch Set 4 : Fixed failing sync-related tests. #

Total comments: 1

Patch Set 5 : No longer touching model or views. #

Total comments: 8

Patch Set 6 : Refactored BookmarkButtonCell parameter ordering. #

Patch Set 7 : Method renaming. #

Patch Set 8 : Rebased. #

Patch Set 9 : Fixed typos and comments. #

Patch Set 10 : Rebased #

Total comments: 14

Patch Set 11 : Rebased, answered alexei's comments. #

Patch Set 12 : Fixed failing unit tests. #

Total comments: 7

Patch Set 13 : Answered alexei. #

Patch Set 14 : Minor typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -119 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.h View 1 2 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge_unittest.mm View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm View 1 2 3 4 5 6 7 8 9 10 14 chunks +141 lines, -61 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm View 1 2 3 4 5 6 7 8 9 10 13 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_unittest.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +21 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm View 1 2 3 4 5 6 7 8 9 10 4 chunks +45 lines, -16 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell_unittest.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
beaudoin
Here is my take on the "apps" menu in the bookmark bar for mac. Still ...
7 years, 9 months ago (2013-03-07 01:47:11 UTC) #1
Alexei Svitkine (slow)
LGTM with a few nits https://codereview.chromium.org/12550006/diff/2001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h (right): https://codereview.chromium.org/12550006/diff/2001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h#newcode229 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h:229: scoped_nsobject<BookmarkButton> appsPageShortcutButton_; Nit: Needs ...
7 years, 9 months ago (2013-03-07 15:56:59 UTC) #2
beaudoin
If you could take a quick look, Alexei, just to make sure I did the ...
7 years, 9 months ago (2013-03-07 21:03:54 UTC) #3
beaudoin
+jrg : For c/b/ui/cocoa/bookmarks/* +sky: For c/b/bookmarks
7 years, 9 months ago (2013-03-07 21:05:46 UTC) #4
beaudoin
sky: Please also check c/b/ui/views/*
7 years, 9 months ago (2013-03-07 21:06:40 UTC) #5
Alexei Svitkine (slow)
LGTM https://codereview.chromium.org/12550006/diff/7001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm (right): https://codereview.chromium.org/12550006/diff/7001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm#newcode28 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm:28: profile_pref_registrar_.Init(browser->profile()->GetPrefs()); Are you only using |browser| to get ...
7 years, 9 months ago (2013-03-07 21:17:07 UTC) #6
John Grabowski
LGTM Have you got a link to some mocks, or design doc? Please wait for ...
7 years, 9 months ago (2013-03-07 21:35:14 UTC) #7
beaudoin
I think asvitkine@ can be considered "active on Mac chrome". Alexei, don't hesitate to add ...
7 years, 9 months ago (2013-03-08 00:02:50 UTC) #8
sky
It's my understanding the 'apps' item on the bookmark bar is purely a button. It's ...
7 years, 9 months ago (2013-03-08 00:52:05 UTC) #9
beaudoin
On 2013/03/08 00:52:05, sky wrote: > It's my understanding the 'apps' item on the bookmark ...
7 years, 9 months ago (2013-03-08 03:15:56 UTC) #10
beaudoin
R: -sky
7 years, 9 months ago (2013-03-08 19:33:34 UTC) #11
beaudoin
R: -sky
7 years, 9 months ago (2013-03-08 19:33:34 UTC) #12
beaudoin
I made the BookmarkButtonCell a bit more flexible so it supports custom buttons that are ...
7 years, 9 months ago (2013-03-08 19:35:25 UTC) #13
Alexei Svitkine (slow)
https://codereview.chromium.org/12550006/diff/23001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (right): https://codereview.chromium.org/12550006/diff/23001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm#newcode293 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:293: // button is "apps page" shortcut: flash it Remove ...
7 years, 9 months ago (2013-03-08 19:45:47 UTC) #14
beaudoin
Answered Alexei's comments. https://codereview.chromium.org/12550006/diff/36001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (right): https://codereview.chromium.org/12550006/diff/36001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm#newcode1421 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:1421: - (BookmarkButton*)createCustomBookmarksButton:(NSCell*)cell { On 2013/03/08 19:45:48, ...
7 years, 9 months ago (2013-03-08 22:07:17 UTC) #15
beaudoin
John, Alexei: Can you PTAL this is getting close to the final version, rebased on ...
7 years, 9 months ago (2013-03-09 01:57:06 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm (right): https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm#newcode9 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm:9: #include "base/prefs/pref_service.h" Remove double include. https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (left): ...
7 years, 9 months ago (2013-03-11 14:31:04 UTC) #17
John Grabowski
Nothing to add other that what Alexei already pointed out. @alexei: please send me a ...
7 years, 9 months ago (2013-03-11 16:03:38 UTC) #18
beaudoin
Answered Alexei's comments, fixed the tests. https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm (right): https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm#newcode9 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_bridge.mm:9: #include "base/prefs/pref_service.h" On ...
7 years, 9 months ago (2013-03-11 21:02:14 UTC) #19
beaudoin
Done that too, forgot to mark it. https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (right): https://codereview.chromium.org/12550006/diff/62001/chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm#newcode190 chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm:190: // anything. ...
7 years, 9 months ago (2013-03-11 21:02:51 UTC) #20
Alexei Svitkine (slow)
https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm (right): https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm#newcode1523 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm:1523: prefs::kShowAppsShortcutInBookmarkBar, false); Please clean up after the test - ...
7 years, 9 months ago (2013-03-11 21:06:43 UTC) #21
beaudoin
https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm (right): https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm#newcode1523 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller_unittest.mm:1523: prefs::kShowAppsShortcutInBookmarkBar, false); On 2013/03/11 21:06:43, Alexei Svitkine wrote: > ...
7 years, 9 months ago (2013-03-11 21:29:56 UTC) #22
Alexei Svitkine (slow)
LGTM, thanks. https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/12550006/diff/69001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode425 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:425: [button setTarget:barController_]; On 2013/03/11 21:29:56, beaudoin wrote: ...
7 years, 9 months ago (2013-03-11 21:39:54 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/beaudoin@chromium.org/12550006/67003
7 years, 9 months ago (2013-03-11 22:01:40 UTC) #24
commit-bot: I haz the power
7 years, 9 months ago (2013-03-12 00:41:25 UTC) #25
Message was sent while issue was closed.
Change committed as 187428

Powered by Google App Engine
This is Rietveld 408576698