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

Issue 340042: bookmark STAR bubble: Disambiguate folders with the same name... (Closed)

Created:
11 years, 1 month ago by John Grabowski
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

bookmark STAR bubble: Disambiguate folders with the same name BUG=http://crbug.com/19408 TEST=Create a bookmark. Create 2 bookmark folders both with the same name, "foo". Go to your bookmarked page. Click STAR to get bookmark bubble. Change parent folder to the 1st "foo". Confirm it's there on the bar. Click STAR to get bookmark bubble. Change parent folder to the 2nd "foo". Confirm it's there on the bar. Click STAR to get bookmark bubble. Chose "choose another folder" to be sure that logic still works.

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -20 lines) Patch
M chrome/browser/cocoa/bookmark_bubble_controller.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bubble_controller.mm View 1 2 5 chunks +37 lines, -17 lines 0 comments Download
M chrome/browser/cocoa/bookmark_bubble_controller_unittest.mm View 1 2 2 chunks +27 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
John Grabowski
11 years, 1 month ago (2009-10-30 01:52:57 UTC) #1
TVL
http://codereview.chromium.org/340042/diff/1/3 File chrome/browser/cocoa/bookmark_bubble_controller.mm (right): http://codereview.chromium.org/340042/diff/1/3#newcode131 Line 131: [self addFolderNodes:model_->root_node() toComboBox:folderComboBox_]; should you make sure the ...
11 years, 1 month ago (2009-10-30 13:05:52 UTC) #2
John Grabowski
New diffs up. http://codereview.chromium.org/340042/diff/1/3 File chrome/browser/cocoa/bookmark_bubble_controller.mm (right): http://codereview.chromium.org/340042/diff/1/3#newcode131 Line 131: [self addFolderNodes:model_->root_node() toComboBox:folderComboBox_]; On 2009/10/30 ...
11 years, 1 month ago (2009-11-01 20:55:53 UTC) #3
TVL
lgtm http://codereview.chromium.org/340042/diff/5001/2004 File chrome/browser/cocoa/bookmark_bubble_controller.mm (right): http://codereview.chromium.org/340042/diff/5001/2004#newcode209 Line 209: i < (NSUInteger)[folderComboBox_ numberOfItems]-1; just use [parentMapping_ ...
11 years, 1 month ago (2009-11-02 12:18:49 UTC) #4
mrossetti
LGTM http://codereview.chromium.org/340042/diff/1/3 File chrome/browser/cocoa/bookmark_bubble_controller.mm (right): http://codereview.chromium.org/340042/diff/1/3#newcode148 Line 148: // TODO(jrg): no distinction is made among ...
11 years, 1 month ago (2009-11-02 17:50:03 UTC) #5
pink (ping after 24hrs)
driveby nits. http://codereview.chromium.org/340042/diff/5001/2004 File chrome/browser/cocoa/bookmark_bubble_controller.mm (right): http://codereview.chromium.org/340042/diff/5001/2004#newcode179 Line 179: if (selectedIndex == -1) // no ...
11 years, 1 month ago (2009-11-02 18:07:18 UTC) #6
John Grabowski
11 years, 1 month ago (2009-11-02 18:58:28 UTC) #7
Final diffs up.
Thx guys.

http://codereview.chromium.org/340042/diff/1/3
File chrome/browser/cocoa/bookmark_bubble_controller.mm (right):

http://codereview.chromium.org/340042/diff/1/3#newcode148
Line 148: // TODO(jrg): no distinction is made among folders with the same name.
On 2009/11/02 17:50:03, mrossetti wrote:
> Stale TODO?

removed

http://codereview.chromium.org/340042/diff/5001/2004#newcode179
Line 179: if (selectedIndex == -1)  // no selection ever made
On 2009/11/02 18:07:18, pink wrote:
> Capitalize, punctuation

fixed

http://codereview.chromium.org/340042/diff/5001/2004#newcode187
Line 187: [[parentMapping_ objectAtIndex:selectedIndex] pointerValue]);
On 2009/11/02 18:07:18, pink wrote:
> indent 4 additional spaces from previous line

indented. TODO(jrg): fix emacs to do this for me.

http://codereview.chromium.org/340042/diff/5001/2004#newcode207
Line 207: [[parentMapping_ objectAtIndex:i] pointerValue]);
On 2009/11/02 18:07:18, pink wrote:
> 80cols

split

http://codereview.chromium.org/340042/diff/5001/2004#newcode209
Line 209: if (possible == parent) {
On 2009/11/02 12:18:49, TVL wrote:
> just use [parentMapping_ count] so you can skip the -1 here?

done

http://codereview.chromium.org/340042/diff/5001/2004#newcode212
Line 212: }
On 2009/11/02 18:07:18, pink wrote:
> indent 4 additional

fixed.  Same TODO as above.

Powered by Google App Engine
This is Rietveld 408576698