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

Issue 363017: Added menu items for sync to Chrome/wrench menu (Closed)

Created:
11 years, 1 month ago by akalin
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Added menu item for sync to wrench menu. Wrench menu item is right above "Preferences...". Chrome menu item will be added in a future CL right above "Clear Browsing Data...". Sync menu items are hidden if bookmark sync is disabled (the current default for OS X). UI decisions were made after consulting with Cole. Added code in browser_window_controller.mm to update sync menu item dynamically. Added unit tests. BUG=23073 TEST=manual testing, trybots, unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31309

Patch Set 1 #

Patch Set 2 : Synced with right HEAD #

Total comments: 2

Patch Set 3 : Addressed tvl's comments. #

Patch Set 4 : Fixed nib. #

Total comments: 2

Patch Set 5 : Set default state of menu items to non-hidden. #

Patch Set 6 : Removed MainMenu changes. #

Patch Set 7 : Reworked CL. #

Total comments: 7

Patch Set 8 : Addressed tvl' #

Patch Set 9 : Addressed tvl's comments #

Patch Set 10 : Missed one. #

Patch Set 11 : Reverted NSNotFound. #

Patch Set 12 : Fixed release-mode warnings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -4 lines) Patch
M chrome/app/nibs/Toolbar.xib View 1 2 3 4 5 6 11 chunks +53 lines, -4 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.h View 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller.mm View 3 4 5 6 7 8 9 10 11 4 chunks +69 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_controller_unittest.mm View 3 4 5 6 7 2 chunks +75 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
akalin
+nick to review sync stuff +avi to review cocoa stuff Also, sync is still disabled ...
11 years, 1 month ago (2009-11-05 00:50:28 UTC) #1
akalin
thakis pointed out that the wrench menu is hidden on OS X by default. So ...
11 years, 1 month ago (2009-11-05 01:13:48 UTC) #2
ncarter (slow)
It looks good to me. One question I have is whether or not it's okay ...
11 years, 1 month ago (2009-11-05 01:36:53 UTC) #3
Avi (use Gerrit)
LG http://codereview.chromium.org/363017/diff/1005/1008 File chrome/browser/cocoa/toolbar_controller.mm (right): http://codereview.chromium.org/363017/diff/1005/1008#newcode221 Line 221: [[wrenchButton_ attachedMenu] indexOfItemWithTag:IDC_SYNC_BOOKMARKS]; On 2009/11/05 01:36:53, nick ...
11 years, 1 month ago (2009-11-05 01:58:35 UTC) #4
TVL
drive by - Should you talk to Cole about putting it in the Menubar some ...
11 years, 1 month ago (2009-11-05 03:54:09 UTC) #5
akalin
On 2009/11/05 03:54:09, TVL wrote: > drive by - > > Should you talk to ...
11 years, 1 month ago (2009-11-05 08:09:29 UTC) #6
akalin
On 2009/11/05 03:54:09, TVL wrote: > drive by - > > Should you talk to ...
11 years, 1 month ago (2009-11-05 08:13:39 UTC) #7
akalin
+tvl Thomas, since you did a drive-by, can you look at this again?
11 years, 1 month ago (2009-11-05 22:06:08 UTC) #8
TVL
http://codereview.chromium.org/363017/diff/8001/9001 File chrome/app/nibs/MainMenu.xib (right): http://codereview.chromium.org/363017/diff/8001/9001#newcode102 Line 102: <string key="NSTitle">^IDS_SYNC_MY_BOOKMARKS_LABEL</string> with all the other menubar ones ...
11 years, 1 month ago (2009-11-05 22:16:55 UTC) #9
akalin (wrong akalin)
Ignore this, for some reason this message arrived half an hour after I sent it. ...
11 years, 1 month ago (2009-11-05 22:38:17 UTC) #10
akalin
On 2009/11/05 22:16:55, TVL wrote: > http://codereview.chromium.org/363017/diff/8001/9001 > File chrome/app/nibs/MainMenu.xib (right): > > http://codereview.chromium.org/363017/diff/8001/9001#newcode102 > ...
11 years, 1 month ago (2009-11-06 01:46:54 UTC) #11
TVL
variable names within objc classes/methods shouldn't use underscores, they use the capital letters instead. http://codereview.chromium.org/363017/diff/12001/12003 ...
11 years, 1 month ago (2009-11-06 13:51:42 UTC) #12
pink (ping after 24hrs)
http://codereview.chromium.org/363017/diff/12001/12004 File chrome/browser/cocoa/browser_window_controller.mm (right): http://codereview.chromium.org/363017/diff/12001/12004#newcode633 Line 633: DCHECK_NE(sync_item_index, -1); On 2009/11/06 13:51:43, TVL wrote: > ...
11 years, 1 month ago (2009-11-06 17:52:28 UTC) #13
pink (ping after 24hrs)
Please familiarize yourself with http://google-styleguide.googlecode.com/svn/trunk/objcguide.xml Might make TVLs comments more clear.
11 years, 1 month ago (2009-11-06 17:54:20 UTC) #14
akalin (wrong akalin)
On Fri, Nov 6, 2009 at 5:51 AM, <thomasvl@chromium.org> wrote: > variable names within objc ...
11 years, 1 month ago (2009-11-06 19:27:54 UTC) #15
TVL
lg
11 years, 1 month ago (2009-11-06 19:33:29 UTC) #16
akalin
On 2009/11/06 17:52:28, pink wrote: > http://codereview.chromium.org/363017/diff/12001/12004#newcode633 > Line 633: DCHECK_NE(sync_item_index, -1); > On 2009/11/06 ...
11 years, 1 month ago (2009-11-06 19:54:07 UTC) #17
akalin
11 years, 1 month ago (2009-11-06 20:29:05 UTC) #18
Committed as r31284.

Powered by Google App Engine
This is Rietveld 408576698