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

Issue 12378055: Make autofill stop depending on InfoBarService (Closed)

Created:
7 years, 9 months ago by kaiwang
Modified:
4 years, 9 months ago
CC:
chromium-reviews, Raman Kakilate, tfarina, benquan, dhollowa+watch_chromium.org, ahutter, browser-components-watch_chromium.org, dbeam+watch-autofill_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Albert Bodenhamer
Visibility:
Public.

Description

Make autofill stop depending on InfoBarService The goal is AutofillCCInfoBarDelegate will stay in c/b/autofill, while most of autofill code move to components/autofill BUG=140037 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186516

Patch Set 1 #

Total comments: 20

Patch Set 2 : Address comments #

Patch Set 3 : Add commentswq #

Patch Set 4 : Rebase #

Total comments: 4

Patch Set 5 : Fix tests #

Total comments: 6

Patch Set 6 : AutofillCCImportConfirmationHandler -> AutofillCCImportConfirmationDelegateImpl #

Patch Set 7 : Remove a DEP #

Patch Set 8 : A new approach #

Patch Set 9 : Simplify test #

Total comments: 8

Patch Set 10 : Address comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -78 lines) Patch
M chrome/browser/autofill/DEPS View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/autofill/autofill_cc_infobar_delegate.h View 1 2 3 4 5 6 7 8 9 3 chunks +12 lines, -23 lines 0 comments Download
M chrome/browser/autofill/autofill_cc_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +20 lines, -14 lines 1 comment Download
M chrome/browser/autofill/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/autofill/autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/autofill/autofill_metrics_unittest.cc View 1 2 3 4 5 6 7 8 6 chunks +13 lines, -20 lines 0 comments Download
M chrome/browser/autofill/test_autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/autofill/test_autofill_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/tab_autofill_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 3 chunks +11 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (1 generated)
kaiwang
Please lemme know whether you feel this approach looks good :)
7 years, 9 months ago (2013-03-02 02:31:34 UTC) #1
Jói
The approach looks good. Perhaps you could update the DEPS file to disallow use of ...
7 years, 9 months ago (2013-03-02 16:21:03 UTC) #2
Ilya Sherman
https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h File chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h (right): https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h#newcode21 chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h:21: }; I don't think this interface is really necessary ...
7 years, 9 months ago (2013-03-04 21:07:34 UTC) #3
kaiwang
https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h File chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h (right): https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h#newcode21 chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h:21: }; I think there are 2 benefits to define ...
7 years, 9 months ago (2013-03-05 01:48:56 UTC) #4
Ilya Sherman
https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h File chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h (right): https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h#newcode21 chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h:21: }; On 2013/03/05 01:48:56, kaiwang wrote: > I think ...
7 years, 9 months ago (2013-03-05 02:50:38 UTC) #5
kaiwang
https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h File chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h (right): https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h#newcode21 chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h:21: }; Seems the only CONs is about code reading. ...
7 years, 9 months ago (2013-03-05 03:57:22 UTC) #6
Ilya Sherman
https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h File chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h (right): https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h#newcode21 chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h:21: }; On 2013/03/05 03:57:23, kaiwang wrote: > Seems the ...
7 years, 9 months ago (2013-03-05 04:37:39 UTC) #7
kaiwang
BTW, do you think I should rename the metrics names? e.g. INFOBAR_SHOWN -> AUTOFILL_CC_CONFIRMATION_SHOWN? https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h ...
7 years, 9 months ago (2013-03-05 18:38:16 UTC) #8
Ilya Sherman
https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h File chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h (right): https://codereview.chromium.org/12378055/diff/1/chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h#newcode21 chrome/browser/autofill/autofill_cc_import_confirmation_delegate.h:21: }; On 2013/03/05 18:38:16, kaiwang wrote: > On 2013/03/05 ...
7 years, 9 months ago (2013-03-05 22:56:57 UTC) #9
Ilya Sherman
On 2013/03/05 18:38:16, kaiwang wrote: > BTW, do you think I should rename the metrics ...
7 years, 9 months ago (2013-03-05 22:59:00 UTC) #10
kaiwang
Please take another look. THanks!
7 years, 9 months ago (2013-03-06 03:46:34 UTC) #11
Ilya Sherman
LGTM with nits. Thanks! https://codereview.chromium.org/12378055/diff/30002/chrome/browser/autofill/autofill_cc_infobar_delegate.cc File chrome/browser/autofill/autofill_cc_infobar_delegate.cc (right): https://codereview.chromium.org/12378055/diff/30002/chrome/browser/autofill/autofill_cc_infobar_delegate.cc#newcode27 chrome/browser/autofill/autofill_cc_infobar_delegate.cc:27: metric_logger->LogCreditCardInfoBarMetric(AutofillMetrics::INFOBAR_SHOWN); Hmm, why did you ...
7 years, 9 months ago (2013-03-06 09:13:24 UTC) #12
kaiwang
https://codereview.chromium.org/12378055/diff/30002/chrome/browser/autofill/autofill_cc_infobar_delegate.cc File chrome/browser/autofill/autofill_cc_infobar_delegate.cc (right): https://codereview.chromium.org/12378055/diff/30002/chrome/browser/autofill/autofill_cc_infobar_delegate.cc#newcode27 chrome/browser/autofill/autofill_cc_infobar_delegate.cc:27: metric_logger->LogCreditCardInfoBarMetric(AutofillMetrics::INFOBAR_SHOWN); Creating an infobar delegate does not mean showing ...
7 years, 9 months ago (2013-03-06 18:25:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/12378055/38001
7 years, 9 months ago (2013-03-06 18:25:56 UTC) #14
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
7 years, 9 months ago (2013-03-06 21:47:26 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kaiwang@chromium.org/12378055/38001
7 years, 9 months ago (2013-03-06 21:53:58 UTC) #16
commit-bot: I haz the power
Change committed as 186516
7 years, 9 months ago (2013-03-06 22:07:20 UTC) #17
Justin Donnelly
4 years, 9 months ago (2016-03-09 03:33:35 UTC) #19
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12378055/diff/38001/chrome/browser/aut...
File chrome/browser/autofill/autofill_cc_infobar_delegate.cc (right):

https://chromiumcodereview.appspot.com/12378055/diff/38001/chrome/browser/aut...
chrome/browser/autofill/autofill_cc_infobar_delegate.cc:94:
save_card_callback_.Reset();
Question arose about this arose in https://codereview.chromium.org/1780443002/.
What's the motivation for the reset here? If it's serving some useful purpose,
would it make sense to reset in Cancel() also?

Powered by Google App Engine
This is Rietveld 408576698