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

Issue 545175: Add the ability to save and remove AutoFill profiles from the AutoFillDialog.... (Closed)

Created:
10 years, 11 months ago by James Hawkins
Modified:
9 years, 7 months ago
Reviewers:
sky
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Add the ability to save and remove AutoFill profiles from the AutoFillDialog. BUG=18201 TEST=PersonalDataManagerTest.SetProfiles Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36978

Patch Set 1 #

Total comments: 61

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 16

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+804 lines, -151 lines) Patch
M chrome/browser/autofill/autofill_dialog.h View 1 2 3 2 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/autofill/autofill_dialog_gtk.cc View 1 2 3 14 chunks +150 lines, -22 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.h View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 3 chunks +24 lines, -11 lines 0 comments Download
M chrome/browser/autofill/autofill_profile.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_profile.cc View 1 2 3 4 2 chunks +38 lines, -1 line 0 comments Download
M chrome/browser/autofill/personal_data_manager.h View 1 2 3 4 5 6 5 chunks +68 lines, -6 lines 0 comments Download
M chrome/browser/autofill/personal_data_manager.cc View 1 2 3 4 5 6 7 9 chunks +141 lines, -7 lines 0 comments Download
A chrome/browser/autofill/personal_data_manager_unittest.cc View 6 7 1 chunk +177 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/webdata/web_data_service.h View 1 2 3 4 5 6 6 chunks +28 lines, -13 lines 0 comments Download
M chrome/browser/webdata/web_data_service.cc View 1 2 3 4 5 6 5 chunks +42 lines, -7 lines 0 comments Download
M chrome/browser/webdata/web_database.h View 1 2 3 4 5 6 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/webdata/web_database.cc View 1 2 3 4 5 6 4 chunks +57 lines, -33 lines 0 comments Download
M chrome/browser/webdata/web_database_unittest.cc View 5 6 2 chunks +1 line, -35 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/notification_type.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 4 chunks +17 lines, -2 lines 0 comments Download
M chrome/test/testing_profile.cc View 3 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
James Hawkins
10 years, 11 months ago (2010-01-22 19:55:49 UTC) #1
sky
http://codereview.chromium.org/545175/diff/1/8 File chrome/browser/autofill/autofill_dialog.h (right): http://codereview.chromium.org/545175/diff/1/8#newcode21 chrome/browser/autofill/autofill_dialog.h:21: std::vector<AutoFillProfile>* delete_profiles, delete_profiles -> deleted_profiles And mention that things ...
10 years, 11 months ago (2010-01-22 20:59:35 UTC) #2
James Hawkins
http://codereview.chromium.org/545175/diff/1/8 File chrome/browser/autofill/autofill_dialog.h (right): http://codereview.chromium.org/545175/diff/1/8#newcode21 chrome/browser/autofill/autofill_dialog.h:21: std::vector<AutoFillProfile>* delete_profiles, On 2010/01/22 20:59:35, sky wrote: > delete_profiles ...
10 years, 11 months ago (2010-01-22 21:51:13 UTC) #3
sky
http://codereview.chromium.org/545175/diff/1/5 File chrome/browser/autofill/personal_data_manager.cc (right): http://codereview.chromium.org/545175/diff/1/5#newcode40 chrome/browser/autofill/personal_data_manager.cc:40: } On 2010/01/22 21:51:13, James Hawkins wrote: > On ...
10 years, 11 months ago (2010-01-22 22:37:49 UTC) #4
James Hawkins
http://codereview.chromium.org/545175/diff/1/5 File chrome/browser/autofill/personal_data_manager.cc (right): http://codereview.chromium.org/545175/diff/1/5#newcode135 chrome/browser/autofill/personal_data_manager.cc:135: if (iter->unique_id() == 0) { On 2010/01/22 22:37:49, sky ...
10 years, 11 months ago (2010-01-22 22:49:00 UTC) #5
sky
http://codereview.chromium.org/545175/diff/1/5 File chrome/browser/autofill/personal_data_manager.cc (right): http://codereview.chromium.org/545175/diff/1/5#newcode135 chrome/browser/autofill/personal_data_manager.cc:135: if (iter->unique_id() == 0) { On 2010/01/22 22:49:01, James ...
10 years, 11 months ago (2010-01-22 23:21:03 UTC) #6
James Hawkins
http://codereview.chromium.org/545175/diff/1/5 File chrome/browser/autofill/personal_data_manager.cc (right): http://codereview.chromium.org/545175/diff/1/5#newcode135 chrome/browser/autofill/personal_data_manager.cc:135: if (iter->unique_id() == 0) { On 2010/01/22 23:21:03, sky ...
10 years, 11 months ago (2010-01-23 00:32:40 UTC) #7
James Hawkins
I added PersonalDataManagerTest.SetProfiles.
10 years, 11 months ago (2010-01-23 05:41:23 UTC) #8
sky
http://codereview.chromium.org/545175/diff/2007/8024 File chrome/browser/autofill/personal_data_manager.cc (right): http://codereview.chromium.org/545175/diff/2007/8024#newcode8 chrome/browser/autofill/personal_data_manager.cc:8: #include <set> nit: sort these, also the header has ...
10 years, 11 months ago (2010-01-23 17:11:01 UTC) #9
James Hawkins
http://codereview.chromium.org/545175/diff/2007/8024 File chrome/browser/autofill/personal_data_manager.cc (right): http://codereview.chromium.org/545175/diff/2007/8024#newcode8 chrome/browser/autofill/personal_data_manager.cc:8: #include <set> On 2010/01/23 17:11:01, sky wrote: > nit: ...
10 years, 11 months ago (2010-01-23 21:48:53 UTC) #10
James Hawkins
One more problem left that I'm not sure how to fix. The mac and win ...
10 years, 11 months ago (2010-01-23 22:39:13 UTC) #11
sky
I think you're seeing flakiness because you have two EXPECT_CALLS with quits but only one ...
10 years, 11 months ago (2010-01-24 07:16:56 UTC) #12
James Hawkins
10 years, 11 months ago (2010-01-24 07:52:24 UTC) #13
Thanks for the tip about the flakiness.  I can't repro the flakiness anymore
locally, when I could before.  I'm going to wait until the trybots are green
before committing.  Thanks again for reviewing on the weekend.

http://codereview.chromium.org/545175/diff/1032/37
File chrome/browser/autofill/personal_data_manager.cc (right):

http://codereview.chromium.org/545175/diff/1032/37#newcode79
chrome/browser/autofill/personal_data_manager.cc:79: CreateNextUniqueID()));
On 2010/01/24 07:16:56, sky wrote:
> Does this need to block until you've finished loading?

In all current instances that ImportFormData is called, we've already waited for
the personal data to load.  We have the same expectation for callers of
SetProfiles too, so it should be fine?

It's on my TODO list to add a callback instead of using the observer interface.

http://codereview.chromium.org/545175/diff/1032/37#newcode160
chrome/browser/autofill/personal_data_manager.cc:160: std::set<int> remove_ids =
unique_ids_;
On 2010/01/24 07:16:56, sky wrote:
> nit: the way you've written it (and because you clear on 174) you don't need
> remove_ids, you can just update unique_ids_ as you're going.

Done.

Powered by Google App Engine
This is Rietveld 408576698