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

Issue 3039014: AutoFill Profiles dialog handles multi-select and delete on Mac (Closed)

Created:
10 years, 5 months ago by dhollowa
Modified:
9 years, 7 months ago
Reviewers:
John Grabowski, Nico
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

AutoFill Profiles dialog handles multi-select and delete on Mac Changes the AutoFill dialog on Mac to support multi-select and delete of items in the address and credit card table. The "Edit..." button disables when multiple items are selected. Nib changes in AutoFillDialog.xib: (1) Enables multi-select for the table view, (2) binds the enabled state of the "Edit..." button to the new |multipleSelected| property, (3) connects edit button to outlet. BUG=49344, 46075 TEST=AutoFillDialogControllerTest.DeleteMultiple. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52989

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressing review comments. #

Patch Set 3 : Merge with trunk. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -67 lines) Patch
M chrome/app/nibs/AutoFillDialog.xib View 1 6 chunks +58 lines, -26 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_controller_mac.h View 1 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_controller_mac.mm View 1 2 4 chunks +58 lines, -35 lines 1 comment Download
M chrome/browser/autofill/autofill_dialog_controller_mac_unittest.mm View 1 2 7 chunks +54 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
dhollowa
10 years, 5 months ago (2010-07-20 00:05:58 UTC) #1
John Grabowski
LGTM http://codereview.chromium.org/3039014/diff/1/4 File chrome/browser/autofill/autofill_dialog_controller_mac.mm (right): http://codereview.chromium.org/3039014/diff/1/4#newcode341 chrome/browser/autofill/autofill_dialog_controller_mac.mm:341: // Deletes selected items, either addresses, credit cards, ...
10 years, 5 months ago (2010-07-20 00:10:23 UTC) #2
dhollowa
http://codereview.chromium.org/3039014/diff/1/4 File chrome/browser/autofill/autofill_dialog_controller_mac.mm (right): http://codereview.chromium.org/3039014/diff/1/4#newcode341 chrome/browser/autofill/autofill_dialog_controller_mac.mm:341: // Deletes selected items, either addresses, credit cards, or ...
10 years, 5 months ago (2010-07-20 00:31:35 UTC) #3
Nico
10 years, 5 months ago (2010-07-20 03:18:20 UTC) #4
http://codereview.chromium.org/3039014/diff/13001/14003
File chrome/browser/autofill/autofill_dialog_controller_mac.mm (right):

http://codereview.chromium.org/3039014/diff/13001/14003#newcode368
chrome/browser/autofill/autofill_dialog_controller_mac.mm:368: for (NSInteger i
= rowCount-1; i>=0; --i) {
You want:

    for (NSUInteger i = [selection lastIndex];
       i != NSNotFound;
       i = [selection indexLessThanIndex:i]) {

Powered by Google App Engine
This is Rietveld 408576698