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

Issue 301343002: mac: Clean up autofill integration with Address Book. (Closed)

Created:
6 years, 6 months ago by erikchen
Modified:
6 years, 6 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, benquan, browser-components-watch_chromium.org, arv+watch_chromium.org, dyu1, estade+watch_chromium.org, Ilya Sherman, rouslan+autofillwatch_chromium.org, Dane Wallinga
Base URL:
https://chromium.googlesource.com/chromium/src.git@autofill_cleanup2_base
Visibility:
Public.

Description

mac: Clean up autofill integration with Address Book. Changes: - Update the copy of the string that describes giving Chrome access to the user's Address Book. - When the user selects the option to pull autofill suggestions from the Address Book, Chrome immediately prompts the user for permission to use the Address Book. I considered delaying the prompt until the option screen is dismissed, but that works less because there are too many ways to dismiss the screen that cause the prompt to appear contextless. (e.g. The user performs a history navigation). - Add a resource for the Contacts icon for the autofill entry. - Add metrics for the autofill entry that suggests that the user give Chrome access to the Address Book. - The pref for auxiliary profiles should default to NO on mac, and should not be syncable. - Update the logic in PersonalDataManagerMac to reflect the new default state of the pref. - Update layout logic of the autofill entry to move the text up by 1 pt, to better account for the weighting of the Contacts icon asset. BUG=139154 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=275367

Patch Set 1 : test #

Total comments: 17

Patch Set 2 : Rebase against top of tree. #

Patch Set 3 : Address comments from isherman. #

Total comments: 29

Patch Set 4 : Address more comments from isherman. #

Total comments: 1

Patch Set 5 : Fix a cross-platform problem. #

Total comments: 16

Patch Set 6 : Address more comments from isherman. #

Total comments: 12

Patch Set 7 : Address layout and asset comments from cleer. #

Patch Set 8 : Remove comments after #else statements. #

Total comments: 9

Patch Set 9 : Respond to isherman's comments on histogram.xml #

Patch Set 10 : Fix a broken preprocessor conditional. #

Patch Set 11 : Move comment. Remove DCHECKs. #

Total comments: 5

Patch Set 12 : Respond to comments from thestig. #

Patch Set 13 : Fix logic error introduced from addressing a comment. #

Total comments: 2

Patch Set 14 : Rename result -> success. #

Patch Set 15 : Autofill test failures on Android. Undo a change to autofill_test_utils.cc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -60 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/autofill_options.html View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/options/autofill_options.js View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_preferences_sync_test.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/autofill_popup_controller_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm View 1 2 3 4 5 6 10 chunks +38 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/autofill_options_handler.cc View 1 2 3 4 5 2 chunks +12 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/autofill/core/browser/autofill_external_delegate.cc View 1 2 3 4 5 6 7 10 chunks +39 lines, -9 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M components/autofill/core/browser/autofill_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +44 lines, -1 line 0 comments Download
M components/autofill/core/browser/autofill_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +10 lines, -4 lines 0 comments Download
M components/autofill/core/browser/autofill_test_utils.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +8 lines, -3 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_mac.mm View 1 2 3 5 chunks +15 lines, -14 lines 0 comments Download
M components/autofill/core/common/autofill_pref_names.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M components/autofill/core/common/autofill_pref_names.cc View 1 2 3 4 5 1 chunk +13 lines, -8 lines 0 comments Download
M components/resources/autofill_scaled_resources.grdp View 1 chunk +1 line, -0 lines 0 comments Download
A components/resources/default_100_percent/common/autofill/mac_contacts_icon.png View 1 2 3 4 5 6 Binary file 0 comments Download
A components/resources/default_200_percent/common/autofill/mac_contacts_icon.png View 1 2 3 4 5 6 Binary file 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +20 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
erikchen
Please review. https://codereview.chromium.org/301343002/diff/10001/chrome/browser/resources/options/autofill_options.js File chrome/browser/resources/options/autofill_options.js (right): https://codereview.chromium.org/301343002/diff/10001/chrome/browser/resources/options/autofill_options.js#newcode66 chrome/browser/resources/options/autofill_options.js:66: chrome.send('accessAddressBook'); I assumed that we would need ...
6 years, 6 months ago (2014-05-30 02:06:14 UTC) #1
Ilya Sherman
Thanks, Erik! https://codereview.chromium.org/301343002/diff/10001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/301343002/diff/10001/chrome/app/generated_resources.grd#newcode9677 chrome/app/generated_resources.grd:9677: <message name="IDS_AUTOFILL_USE_MAC_ADDRESS_BOOK" desc="Checkbox label to enable access ...
6 years, 6 months ago (2014-05-30 23:39:47 UTC) #2
erikchen
https://codereview.chromium.org/301343002/diff/10001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/10001/components/autofill/core/browser/autofill_manager.cc#newcode214 components/autofill/core/browser/autofill_manager.cc:214: #endif // defined(OS_MACOSX) || defined(OS_ANDROID) On 2014/05/30 23:39:48, Ilya ...
6 years, 6 months ago (2014-05-31 00:14:08 UTC) #3
Ilya Sherman
https://codereview.chromium.org/301343002/diff/10001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/10001/components/autofill/core/browser/autofill_manager.cc#newcode214 components/autofill/core/browser/autofill_manager.cc:214: #endif // defined(OS_MACOSX) || defined(OS_ANDROID) On 2014/05/31 00:14:08, erikchen1 ...
6 years, 6 months ago (2014-05-31 00:39:15 UTC) #4
erikchen
isherman: PTAL https://codereview.chromium.org/301343002/diff/10001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/301343002/diff/10001/chrome/app/generated_resources.grd#newcode9677 chrome/app/generated_resources.grd:9677: <message name="IDS_AUTOFILL_USE_MAC_ADDRESS_BOOK" desc="Checkbox label to enable access ...
6 years, 6 months ago (2014-06-02 21:21:16 UTC) #5
Ilya Sherman
Thanks, Erik. https://codereview.chromium.org/301343002/diff/110001/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/301343002/diff/110001/components/autofill/core/browser/autofill_external_delegate.cc#newcode21 components/autofill/core/browser/autofill_external_delegate.cc:21: // An autofill entry was shown that ...
6 years, 6 months ago (2014-06-02 22:54:26 UTC) #6
erikchen
isherman: PTAL https://codereview.chromium.org/301343002/diff/110001/components/autofill/core/browser/autofill_external_delegate.cc File components/autofill/core/browser/autofill_external_delegate.cc (right): https://codereview.chromium.org/301343002/diff/110001/components/autofill/core/browser/autofill_external_delegate.cc#newcode21 components/autofill/core/browser/autofill_external_delegate.cc:21: // An autofill entry was shown that ...
6 years, 6 months ago (2014-06-03 01:34:18 UTC) #7
Ilya Sherman
Thanks, Erik. https://codereview.chromium.org/301343002/diff/110001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/301343002/diff/110001/components/autofill/core/browser/personal_data_manager.cc#newcode536 components/autofill/core/browser/personal_data_manager.cc:536: #endif On 2014/06/03 01:34:19, erikchen1 wrote: > ...
6 years, 6 months ago (2014-06-03 23:49:00 UTC) #8
erikchen
isherman: PTAL https://codereview.chromium.org/301343002/diff/110001/components/autofill/core/browser/personal_data_manager.cc File components/autofill/core/browser/personal_data_manager.cc (right): https://codereview.chromium.org/301343002/diff/110001/components/autofill/core/browser/personal_data_manager.cc#newcode536 components/autofill/core/browser/personal_data_manager.cc:536: #endif On 2014/06/03 23:48:59, Ilya Sherman wrote: ...
6 years, 6 months ago (2014-06-04 01:51:26 UTC) #9
Ilya Sherman
Thanks, Erik! https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc#newcode264 components/autofill/core/browser/autofill_manager.cc:264: } Hmm, is this extra work necessary? ...
6 years, 6 months ago (2014-06-04 20:46:09 UTC) #10
erikchen
isherman: PTAL Please note patch set 7, which includes layout and asset changes requested by ...
6 years, 6 months ago (2014-06-04 21:13:03 UTC) #11
Ilya Sherman
https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc#newcode264 components/autofill/core/browser/autofill_manager.cc:264: } On 2014/06/04 21:13:03, erikchen1 wrote: > On 2014/06/04 ...
6 years, 6 months ago (2014-06-04 21:21:03 UTC) #12
Ilya Sherman
Sorry, I missed the histograms.xml file previously, because it doesn't have unified diffs listed in ...
6 years, 6 months ago (2014-06-04 21:24:46 UTC) #13
erikchen
isherman: PTAL https://codereview.chromium.org/301343002/diff/270001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm File chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm (right): https://codereview.chromium.org/301343002/diff/270001/chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm#newcode119 chrome/browser/ui/cocoa/autofill/autofill_popup_view_cocoa.mm:119: // text needs to be bumped up ...
6 years, 6 months ago (2014-06-04 22:11:12 UTC) #14
Ilya Sherman
https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc#newcode264 components/autofill/core/browser/autofill_manager.cc:264: } On 2014/06/04 21:21:03, Ilya Sherman wrote: > On ...
6 years, 6 months ago (2014-06-04 22:21:44 UTC) #15
erikchen
https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc#newcode264 components/autofill/core/browser/autofill_manager.cc:264: } On 2014/06/04 22:21:45, Ilya Sherman wrote: > On ...
6 years, 6 months ago (2014-06-04 22:27:08 UTC) #16
Ilya Sherman
LGTM % a final two nits. Thanks, Erik! https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc#newcode242 components/autofill/core/browser/autofill_manager.cc:242: DCHECK(pref); ...
6 years, 6 months ago (2014-06-04 22:46:40 UTC) #17
erikchen
https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/230001/components/autofill/core/browser/autofill_manager.cc#newcode242 components/autofill/core/browser/autofill_manager.cc:242: DCHECK(pref); On 2014/06/04 22:46:41, Ilya Sherman wrote: > nit: ...
6 years, 6 months ago (2014-06-04 22:50:05 UTC) #18
erikchen
blundell: Looking for OWNER review of components/resources thestig: Looking for OWNER review of chrome/browser
6 years, 6 months ago (2014-06-04 22:53:57 UTC) #19
Lei Zhang
https://codereview.chromium.org/301343002/diff/350001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/301343002/diff/350001/chrome/app/generated_resources.grd#newcode9667 chrome/app/generated_resources.grd:9667: <message name="IDS_AUTOFILL_USE_MAC_ADDRESS_BOOK" desc="Checkbox label to enable access to the ...
6 years, 6 months ago (2014-06-04 22:58:35 UTC) #20
erikchen
https://codereview.chromium.org/301343002/diff/350001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/301343002/diff/350001/chrome/app/generated_resources.grd#newcode9667 chrome/app/generated_resources.grd:9667: <message name="IDS_AUTOFILL_USE_MAC_ADDRESS_BOOK" desc="Checkbox label to enable access to the ...
6 years, 6 months ago (2014-06-04 23:26:23 UTC) #21
Lei Zhang
lgtm https://codereview.chromium.org/301343002/diff/350001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/301343002/diff/350001/chrome/app/generated_resources.grd#newcode9667 chrome/app/generated_resources.grd:9667: <message name="IDS_AUTOFILL_USE_MAC_ADDRESS_BOOK" desc="Checkbox label to enable access to ...
6 years, 6 months ago (2014-06-04 23:28:32 UTC) #22
blundell
lgtm
6 years, 6 months ago (2014-06-05 09:31:23 UTC) #23
erikchen
isherman: PTAL. Looking for a short, final pass. While addressing one of your comments, I ...
6 years, 6 months ago (2014-06-05 17:24:37 UTC) #24
Ilya Sherman
LGTM, thanks. https://codereview.chromium.org/301343002/diff/390001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/390001/components/autofill/core/browser/autofill_manager.cc#newcode265 components/autofill/core/browser/autofill_manager.cc:265: bool result = pref_accessed->GetValue()->GetAsBoolean(&accessed); Optional nit: I ...
6 years, 6 months ago (2014-06-05 17:54:44 UTC) #25
erikchen
https://codereview.chromium.org/301343002/diff/390001/components/autofill/core/browser/autofill_manager.cc File components/autofill/core/browser/autofill_manager.cc (right): https://codereview.chromium.org/301343002/diff/390001/components/autofill/core/browser/autofill_manager.cc#newcode265 components/autofill/core/browser/autofill_manager.cc:265: bool result = pref_accessed->GetValue()->GetAsBoolean(&accessed); On 2014/06/05 17:54:43, Ilya Sherman ...
6 years, 6 months ago (2014-06-05 17:58:10 UTC) #26
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 6 months ago (2014-06-05 17:58:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/301343002/410001
6 years, 6 months ago (2014-06-05 18:00:08 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 6 months ago (2014-06-05 23:07:22 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 00:22:23 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/160317)
6 years, 6 months ago (2014-06-06 00:22:24 UTC) #31
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 6 months ago (2014-06-06 00:48:56 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/301343002/430001
6 years, 6 months ago (2014-06-06 00:51:26 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 08:22:09 UTC) #34
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 10:13:37 UTC) #35
Message was sent while issue was closed.
Change committed as 275367

Powered by Google App Engine
This is Rietveld 408576698