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

Issue 1957043002: Separate the listeners and getters for the Autofill Private API. (Closed)

Created:
4 years, 7 months ago by hcarmona
Modified:
4 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, michaelpg+watch-md-settings_chromium.org, jlklein+watch-closure_chromium.org, michaelpg+watch-md-ui_chromium.org, arv+watch_chromium.org, vitalyp+closure_chromium.org, chromium-apps-reviews_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-closure_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@autofill-lists.gitbr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Separate the listeners and getters for the Autofill Private API. OnAddressListChanged and OnCreditCardListChanged used to trigger an update when a listener was added. This is now de-coupled so that a list can be retrieved separately from listening for changes. BUG=607348, 607347 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/f900222890dd7e4d6ca6ac872520b6ee9c518f04 Cr-Commit-Position: refs/heads/master@{#395462}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Use API directly #

Total comments: 2

Patch Set 3 : Feedback #

Total comments: 4

Patch Set 4 : Feedback #

Patch Set 5 : Fix bug #

Total comments: 2

Patch Set 6 : Nit and Rebase #

Patch Set 7 : update histogram.xml and test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+909 lines, -237 lines) Patch
M chrome/browser/extensions/api/autofill_private/autofill_private_api.h View 2 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/autofill_private/autofill_private_api.cc View 3 chunks +50 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/autofill_private/autofill_private_event_router.h View 1 chunk +0 lines, -8 lines 0 comments Download
M chrome/browser/extensions/api/autofill_private/autofill_private_event_router.cc View 1 2 3 4 5 6 2 chunks +3 lines, -42 lines 0 comments Download
M chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.html View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js View 1 2 3 4 5 9 chunks +237 lines, -40 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/autofill_private.idl View 3 chunks +11 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/autofill_private/test.js View 3 chunks +3 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/passwords_and_autofill_fake_data.js View 1 2 3 1 chunk +108 lines, -0 lines 0 comments Download
A chrome/test/data/webui/settings/passwords_and_forms_browsertest.js View 1 2 3 1 chunk +378 lines, -0 lines 0 comments Download
M chrome/test/data/webui/settings/settings_autofill_section_browsertest.js View 1 2 3 6 chunks +17 lines, -78 lines 0 comments Download
M chrome/test/data/webui/settings/settings_passwords_section_browsertest.js View 1 2 3 12 chunks +41 lines, -66 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/closure_compiler/externs/autofill_private.js View 2 chunks +16 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
hcarmona
PTAL Thanks!
4 years, 7 months ago (2016-05-07 01:36:53 UTC) #5
stevenjb
https://codereview.chromium.org/1957043002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js File chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js (right): https://codereview.chromium.org/1957043002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js#newcode131 chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js:131: }; I think this wrapper confuses things. Looking at ...
4 years, 7 months ago (2016-05-09 16:46:51 UTC) #6
hcarmona
https://codereview.chromium.org/1957043002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js File chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js (right): https://codereview.chromium.org/1957043002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js#newcode131 chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js:131: }; On 2016/05/09 16:46:51, stevenjb wrote: > I think ...
4 years, 7 months ago (2016-05-12 20:53:53 UTC) #7
stevenjb
https://codereview.chromium.org/1957043002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js File chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js (right): https://codereview.chromium.org/1957043002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js#newcode198 chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js:198: this.passwordManager_ = PasswordManagerImpl.getInstance(); We might want to keep this ...
4 years, 7 months ago (2016-05-12 21:19:54 UTC) #8
hcarmona
https://codereview.chromium.org/1957043002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js File chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js (right): https://codereview.chromium.org/1957043002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js#newcode198 chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js:198: this.passwordManager_ = PasswordManagerImpl.getInstance(); On 2016/05/12 21:19:54, stevenjb wrote: > ...
4 years, 7 months ago (2016-05-13 02:01:02 UTC) #9
stevenjb
https://codereview.chromium.org/1957043002/diff/40001/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js File chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js (right): https://codereview.chromium.org/1957043002/diff/40001/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js#newcode11 chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js:11: var AutofillManager = chrome.autofillPrivate; I would avoid putting generically ...
4 years, 7 months ago (2016-05-13 15:58:40 UTC) #10
hcarmona
PTAL. Also this CL is starting to get a bit large. Let me know if ...
4 years, 7 months ago (2016-05-18 00:14:45 UTC) #12
stevenjb
I think that there is an extra layer in passwords_and_forms_page.js that could be removed, but ...
4 years, 7 months ago (2016-05-23 17:40:01 UTC) #13
hcarmona
+Ilya for extension_function_histogram_value.h +Devlin for autofill_private.idl PTAL, Thanks! https://codereview.chromium.org/1957043002/diff/100001/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js File chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js (right): https://codereview.chromium.org/1957043002/diff/100001/chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js#newcode334 chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.js:334: setCreditCards_: ...
4 years, 7 months ago (2016-05-23 19:02:11 UTC) #15
Devlin
On 2016/05/23 19:02:11, Hector Carmona wrote: > +Devlin for autofill_private.idl Looks like you have some ...
4 years, 7 months ago (2016-05-23 20:19:09 UTC) #16
Ilya Sherman
Please run the script to update histograms.xml
4 years, 7 months ago (2016-05-23 21:00:30 UTC) #17
hcarmona
Updated histograms.xml using script and fixed tests (still running, but expecting green)
4 years, 7 months ago (2016-05-23 22:52:29 UTC) #18
Ilya Sherman
histograms.xml lgtm
4 years, 7 months ago (2016-05-23 22:54:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1957043002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1957043002/140001
4 years, 7 months ago (2016-05-23 23:17:02 UTC) #22
commit-bot: I haz the power
Committed patchset #7 (id:140001)
4 years, 7 months ago (2016-05-23 23:29:35 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 23:35:02 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/f900222890dd7e4d6ca6ac872520b6ee9c518f04
Cr-Commit-Position: refs/heads/master@{#395462}

Powered by Google App Engine
This is Rietveld 408576698