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

Issue 334653006: mac: Prevent Address Book permissions dialog from erroneously appearing. (Closed)

Created:
6 years, 6 months ago by erikchen
Modified:
6 years, 6 months ago
CC:
chromium-reviews, benquan, browser-components-watch_chromium.org, Dane Wallinga, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Project:
chromium
Visibility:
Public.

Description

mac: Prevent Address Book permissions dialog from erroneously appearing. This CL fixes a bug where auto-updating Chrome can cause the Address Book permissions dialog to appear, even though the user has already granted/denied Chrome access to the user's Address Book. When the Chrome binary is updated, chrome_autofill_client now passes the information to personal_data_manager, which will refrain from accessing the address book, if doing so would cause a blocking dialog to appear. BUG=381763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278254

Patch Set 1 : First. #

Total comments: 42

Patch Set 2 : Comments from isherman. #

Patch Set 3 : Add metrics. Note the addition of histograms.xml #

Total comments: 10

Patch Set 4 : Respond to isherman comments. #

Total comments: 17

Patch Set 5 : Respond to isherman comments. #

Patch Set 6 : Fix test. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -0 lines) Patch
M chrome/browser/ui/autofill/chrome_autofill_client.h View 1 2 3 4 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/autofill/chrome_autofill_client_mac.mm View 1 2 3 4 5 1 chunk +106 lines, -0 lines 3 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M components/autofill/core/browser/personal_data_manager_mac.mm View 1 2 3 4 5 chunks +41 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
erikchen
isherman: Please review. https://codereview.chromium.org/334653006/diff/20001/chrome/browser/mac/keystone_glue.mm File chrome/browser/mac/keystone_glue.mm (right): https://codereview.chromium.org/334653006/diff/20001/chrome/browser/mac/keystone_glue.mm#newcode677 chrome/browser/mac/keystone_glue.mm:677: DCHECK([NSThread isMainThread]); I'm not confident that ...
6 years, 6 months ago (2014-06-12 23:54:42 UTC) #1
erikchen
isherman: Ping?
6 years, 6 months ago (2014-06-14 00:47:31 UTC) #2
Ilya Sherman
Hmm. I'm a little worried that this will lead to an inconsistent user experience for ...
6 years, 6 months ago (2014-06-14 01:18:51 UTC) #3
erikchen
isherman: PTAL I've added metrics for the frequency that the logic in this CL gets ...
6 years, 6 months ago (2014-06-16 20:30:47 UTC) #4
Ilya Sherman
On 2014/06/16 20:30:47, erikchen1 wrote: > I've added metrics for the frequency that the logic ...
6 years, 6 months ago (2014-06-17 03:29:17 UTC) #5
erikchen
isherman: PTAL You bring up very reasonable points about the "half-baked" feel of Autofill Address ...
6 years, 6 months ago (2014-06-17 18:14:28 UTC) #6
Ilya Sherman
https://codereview.chromium.org/334653006/diff/210001/chrome/browser/mac/keystone_glue.h File chrome/browser/mac/keystone_glue.h (right): https://codereview.chromium.org/334653006/diff/210001/chrome/browser/mac/keystone_glue.h#newcode42 chrome/browser/mac/keystone_glue.h:42: } // namespace keystone_glue I would prefer not to ...
6 years, 6 months ago (2014-06-17 19:55:01 UTC) #7
erikchen
isherman: Thanks! PTAL. https://codereview.chromium.org/334653006/diff/210001/chrome/browser/mac/keystone_glue.h File chrome/browser/mac/keystone_glue.h (right): https://codereview.chromium.org/334653006/diff/210001/chrome/browser/mac/keystone_glue.h#newcode42 chrome/browser/mac/keystone_glue.h:42: } // namespace keystone_glue On 2014/06/17 ...
6 years, 6 months ago (2014-06-17 22:36:06 UTC) #8
Ilya Sherman
LGTM assuming you want to keep the current metric, but please see my comment below: ...
6 years, 6 months ago (2014-06-17 23:50:34 UTC) #9
erikchen
On Tue, Jun 17, 2014 at 4:50 PM, <isherman@chromium.org> wrote: > LGTM assuming you want ...
6 years, 6 months ago (2014-06-18 01:07:16 UTC) #10
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 6 months ago (2014-06-18 01:08:15 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/334653006/270001
6 years, 6 months ago (2014-06-18 01:11:27 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-18 13:59:06 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/40500)
6 years, 6 months ago (2014-06-18 13:59:07 UTC) #14
erikchen
isherman: Purely informative. No response expected. As we should have guessed, there is a test ...
6 years, 6 months ago (2014-06-18 17:37:36 UTC) #15
erikchen
The CQ bit was checked by erikchen@chromium.org
6 years, 6 months ago (2014-06-18 17:39:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erikchen@chromium.org/334653006/290001
6 years, 6 months ago (2014-06-18 17:40:17 UTC) #17
Ilya Sherman
https://codereview.chromium.org/334653006/diff/290001/chrome/browser/ui/autofill/chrome_autofill_client_mac.mm File chrome/browser/ui/autofill/chrome_autofill_client_mac.mm (right): https://codereview.chromium.org/334653006/diff/290001/chrome/browser/ui/autofill/chrome_autofill_client_mac.mm#newcode23 chrome/browser/ui/autofill/chrome_autofill_client_mac.mm:23: // to outlive this object. The PersonalDataManager may be ...
6 years, 6 months ago (2014-06-18 23:10:04 UTC) #18
erikchen
https://codereview.chromium.org/334653006/diff/290001/chrome/browser/ui/autofill/chrome_autofill_client_mac.mm File chrome/browser/ui/autofill/chrome_autofill_client_mac.mm (right): https://codereview.chromium.org/334653006/diff/290001/chrome/browser/ui/autofill/chrome_autofill_client_mac.mm#newcode23 chrome/browser/ui/autofill/chrome_autofill_client_mac.mm:23: // to outlive this object. The PersonalDataManager may be ...
6 years, 6 months ago (2014-06-18 23:13:51 UTC) #19
Ilya Sherman
On 2014/06/18 01:07:16, erikchen1 wrote: > O? I was not under the impression that we ...
6 years, 6 months ago (2014-06-18 23:40:49 UTC) #20
Ilya Sherman
https://codereview.chromium.org/334653006/diff/290001/chrome/browser/ui/autofill/chrome_autofill_client_mac.mm File chrome/browser/ui/autofill/chrome_autofill_client_mac.mm (right): https://codereview.chromium.org/334653006/diff/290001/chrome/browser/ui/autofill/chrome_autofill_client_mac.mm#newcode23 chrome/browser/ui/autofill/chrome_autofill_client_mac.mm:23: // to outlive this object. The PersonalDataManager may be ...
6 years, 6 months ago (2014-06-18 23:40:55 UTC) #21
commit-bot: I haz the power
6 years, 6 months ago (2014-06-19 03:19:33 UTC) #22
Message was sent while issue was closed.
Change committed as 278254

Powered by Google App Engine
This is Rietveld 408576698