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

Issue 578383002: mac: Only show the access Address Book prompt a fixed number of times. (Closed)

Created:
6 years, 3 months ago by erikchen
Modified:
6 years, 3 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, Alexei Svitkine (slow)
Base URL:
https://chromium.googlesource.com/chromium/src.git@autofill-contacts
Project:
chromium
Visibility:
Public.

Description

mac: Only show the access Address Book prompt a fixed number of times. Once the Address Book prompt has been shown on 5 times (repeatedly being shown on the same form doesn't count), don't show it ever again. This CL also re-enables the access Address Book prompt, which was disabled due to bugs in the implementation. BUG=414359 Committed: https://crrev.com/d90fe6dde92f70c6c133d97ae7e686c186060f1c Cr-Commit-Position: refs/heads/master@{#296114}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Comments from estade. #

Total comments: 5

Patch Set 3 : Comments from estade. #

Total comments: 8

Patch Set 4 : Comments from isherman. #

Patch Set 5 : Comments from isherman, round 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -11 lines) Patch
M components/autofill/core/browser/autofill_external_delegate.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.cc View 1 2 3 4 6 chunks +14 lines, -5 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 chunks +16 lines, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.h View 1 4 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_mac.mm View 1 2 4 5 chunks +20 lines, -5 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M components/autofill/core/common/autofill_pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/common/autofill_pref_names.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M components/autofill/core/common/form_data.h View 1 chunk +2 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
erikchen
estade: Please review.
6 years, 3 months ago (2014-09-18 18:51:01 UTC) #2
Evan Stade
https://codereview.chromium.org/578383002/diff/1/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/578383002/diff/1/components/autofill/core/browser/autofill_external_delegate.cc#newcode213 components/autofill/core/browser/autofill_external_delegate.cc:213: EmitHistogram(SELECTED_ACCESS_ADDRESS_BOOK_ENTRY); histogram to count how many times the prompt ...
6 years, 3 months ago (2014-09-18 21:26:37 UTC) #3
erikchen
estade: PTAL https://codereview.chromium.org/578383002/diff/1/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/578383002/diff/1/components/autofill/core/browser/autofill_external_delegate.cc#newcode213 components/autofill/core/browser/autofill_external_delegate.cc:213: EmitHistogram(SELECTED_ACCESS_ADDRESS_BOOK_ENTRY); On 2014/09/18 21:26:37, Evan Stade wrote: ...
6 years, 3 months ago (2014-09-18 21:55:58 UTC) #4
Evan Stade
https://codereview.chromium.org/578383002/diff/20001/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/578383002/diff/20001/components/autofill/core/browser/autofill_external_delegate.cc#newcode209 components/autofill/core/browser/autofill_external_delegate.cc:209: LOCAL_HISTOGRAM_ENUMERATION("Autofill.MacAddressBook.ShowedCount", instead of ShowedCount, how about NumShowsBeforeSelected? https://codereview.chromium.org/578383002/diff/20001/components/autofill/core/browser/personal_data_manager_mac.mm File ...
6 years, 3 months ago (2014-09-18 22:06:09 UTC) #5
erikchen
estade: PTAL https://codereview.chromium.org/578383002/diff/20001/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/578383002/diff/20001/components/autofill/core/browser/autofill_external_delegate.cc#newcode209 components/autofill/core/browser/autofill_external_delegate.cc:209: LOCAL_HISTOGRAM_ENUMERATION("Autofill.MacAddressBook.ShowedCount", On 2014/09/18 22:06:09, Evan Stade wrote: ...
6 years, 3 months ago (2014-09-18 22:49:50 UTC) #6
Evan Stade
lgtm
6 years, 3 months ago (2014-09-19 23:17:52 UTC) #7
erikchen
isherman: Looking for OWNER review of tools/metrics/histograms/histograms.xml
6 years, 3 months ago (2014-09-19 23:29:16 UTC) #9
Ilya Sherman
https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc#newcode209 components/autofill/core/browser/autofill_external_delegate.cc:209: LOCAL_HISTOGRAM_ENUMERATION( This should be an UMA_HISTOGRAM_ENUMERATION, since you want ...
6 years, 3 months ago (2014-09-20 00:01:24 UTC) #10
erikchen
https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc#newcode209 components/autofill/core/browser/autofill_external_delegate.cc:209: LOCAL_HISTOGRAM_ENUMERATION( On 2014/09/20 00:01:24, Ilya Sherman wrote: > This ...
6 years, 3 months ago (2014-09-20 00:36:05 UTC) #11
Ilya Sherman
+cc Alexei for discussion about how to make LOCAL_ vs. UMA_ histograms even clearer. https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc ...
6 years, 3 months ago (2014-09-20 00:44:44 UTC) #12
erikchen
isherman: PTAL Diff patch set 5 against patch set 3. https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc#newcode212 ...
6 years, 3 months ago (2014-09-20 01:03:21 UTC) #13
Ilya Sherman
LGTM
6 years, 3 months ago (2014-09-20 01:04:19 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/578383002/80001
6 years, 3 months ago (2014-09-20 01:06:31 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/578383002/80001
6 years, 3 months ago (2014-09-20 01:06:38 UTC) #17
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-20 03:08:04 UTC) #19
Alexei Svitkine (slow)
https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/578383002/diff/40001/components/autofill/core/browser/autofill_external_delegate.cc#newcode209 components/autofill/core/browser/autofill_external_delegate.cc:209: LOCAL_HISTOGRAM_ENUMERATION( On 2014/09/20 00:44:43, Ilya Sherman wrote: > On ...
6 years, 3 months ago (2014-09-22 15:10:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/578383002/80001
6 years, 3 months ago (2014-09-23 00:52:35 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001) as b17df349625c5727fcd050b66d93f0eaa7012367
6 years, 3 months ago (2014-09-23 00:53:59 UTC) #24
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 00:54:38 UTC) #25
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d90fe6dde92f70c6c133d97ae7e686c186060f1c
Cr-Commit-Position: refs/heads/master@{#296114}

Powered by Google App Engine
This is Rietveld 408576698