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

Issue 418133012: Add button to page info to revoke user certificate decisions. (Closed)

Created:
6 years, 5 months ago by jww
Modified:
6 years, 4 months ago
CC:
chromium-reviews, tfarina, markusheintz_, darin-cc_chromium.org, ainslie, felt
Project:
chromium
Visibility:
Public.

Description

Add button to page info to revoke user certificate decisions Currently, if a user clicks 'proceed' through an SSL interstitial, their only way to revoke this decision is to restart their browser session. This commit provides an explicit button in the page info to revoke this decision if the user is using the remember certificate error decisions experiment. Since decisions are remembered across browser restarts for these users, it's important to provide them with a mechanism to revoke their decision later. BUG=262615 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289311

Patch Set 1 #

Total comments: 17

Patch Set 2 : Addressed some of pkasting's comments #

Patch Set 3 : Moved ssl_host_state to content/public #

Patch Set 4 : Rebase on ToT #

Total comments: 2

Patch Set 5 : Nits from pkasting and rsesek #

Total comments: 13

Patch Set 6 : Rebase on ToT to get new ssl_host_state_delegate #

Patch Set 7 : Update to button and reduced SSLHostState API #

Total comments: 10

Patch Set 8 : Rebase on ToT #

Patch Set 9 : Java indentation #

Patch Set 10 : Address pkasting comments #

Total comments: 29

Patch Set 11 : Fixes from pkasting and jam #

Patch Set 12 : Address pkasting and jam's comments #

Patch Set 13 : Rebase on ToT #

Total comments: 2

Patch Set 14 : Address some pkasting nits #

Total comments: 2

Patch Set 15 : Addressed jam's comment #

Patch Set 16 : Added check of group and switch per Alex's request #

Patch Set 17 : Fix findbugs complaint #

Patch Set 18 : Rebase on ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+451 lines, -308 lines) Patch
M chrome/android/java/res/values/colors.xml View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 7 chunks +36 lines, -5 lines 0 comments Download
M chrome/app/generated_resources.grd View 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +25 lines, -2 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +54 lines, -3 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +46 lines, -17 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/website_settings_popup_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +34 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +67 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/website_settings/website_settings_popup_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +50 lines, -40 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +46 lines, -1 line 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +8 lines, -4 lines 0 comments Download
D content/browser/ssl/ssl_host_state.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -94 lines 0 comments Download
D content/browser/ssl/ssl_host_state.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -118 lines 0 comments Download
M content/browser/ssl/ssl_policy_backend.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M content/browser/ssl/ssl_policy_backend.cc View 1 2 3 4 5 6 1 chunk +17 lines, -7 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +0 lines, -2 lines 0 comments Download
M content/public/browser/ssl_host_state_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
jww
Hi everyone. This CL adds a button so users can choose to stop allowing an ...
6 years, 5 months ago (2014-07-26 02:28:49 UTC) #1
Peter Kasting
FYI, I can't review ObjC code. I can review the non-cocoa UI pieces.
6 years, 5 months ago (2014-07-26 02:34:11 UTC) #2
Peter Kasting
https://codereview.chromium.org/418133012/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/418133012/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode385 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:385: const ui::Event& event) { Why do we still have ...
6 years, 5 months ago (2014-07-26 02:40:40 UTC) #3
jww
On 2014/07/26 02:34:11, Peter Kasting wrote: > FYI, I can't review ObjC code. I can ...
6 years, 5 months ago (2014-07-26 16:17:48 UTC) #4
jww
pkasting@, I addressed some of your comments and replied to others. I also made one ...
6 years, 4 months ago (2014-07-27 17:29:26 UTC) #5
Peter Kasting
https://codereview.chromium.org/418133012/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/418133012/diff/1/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode829 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:829: ->RevokeAllowAndDenyPreferences(presenter_->GetSiteURL().host()); On 2014/07/27 17:29:26, jww wrote: > On 2014/07/26 ...
6 years, 4 months ago (2014-07-28 11:07:45 UTC) #6
Robert Sesek
cocoa/ LGTM https://codereview.chromium.org/418133012/diff/60001/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm File chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm (right): https://codereview.chromium.org/418133012/diff/60001/chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm#newcode524 chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm:524: ->RevokeAllowAndDenyPreferences(presenter_->GetSiteURL().host()); Whatever you and pkasting decide about ...
6 years, 4 months ago (2014-07-28 15:42:51 UTC) #7
jww
I've (hopefully) addressed the nits in the CL other than the change from link to ...
6 years, 4 months ago (2014-07-28 19:10:00 UTC) #8
Ted C
lgtm w/ style nits https://codereview.chromium.org/418133012/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java (right): https://codereview.chromium.org/418133012/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java#newcode47 chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java:47: private final long mNativeWebsiteSettingsPopup; I ...
6 years, 4 months ago (2014-07-28 20:15:50 UTC) #9
Charlie Reis
[+jam for content/public additions] https://codereview.chromium.org/418133012/diff/80001/content/public/browser/ssl_host_state.h File content/public/browser/ssl_host_state.h (right): https://codereview.chromium.org/418133012/diff/80001/content/public/browser/ssl_host_state.h#newcode31 content/public/browser/ssl_host_state.h:31: class SSLHostState : NON_EXPORTED_BASE(base::SupportsUserData::Data), We're ...
6 years, 4 months ago (2014-07-28 20:16:25 UTC) #10
jam
https://codereview.chromium.org/418133012/diff/80001/content/public/browser/ssl_host_state.h File content/public/browser/ssl_host_state.h (right): https://codereview.chromium.org/418133012/diff/80001/content/public/browser/ssl_host_state.h#newcode31 content/public/browser/ssl_host_state.h:31: class SSLHostState : NON_EXPORTED_BASE(base::SupportsUserData::Data), On 2014/07/28 20:16:24, Charlie Reis ...
6 years, 4 months ago (2014-07-28 23:06:21 UTC) #11
jam
On 2014/07/28 23:06:21, jam wrote: > https://codereview.chromium.org/418133012/diff/80001/content/public/browser/ssl_host_state.h > File content/public/browser/ssl_host_state.h (right): > > https://codereview.chromium.org/418133012/diff/80001/content/public/browser/ssl_host_state.h#newcode31 > ...
6 years, 4 months ago (2014-07-31 21:45:15 UTC) #12
jww
pkasting, all links are now buttons. Please let me know if this looks good. jam@, ...
6 years, 4 months ago (2014-08-06 00:51:47 UTC) #13
Ted C
still lgtm (small indenting nit) https://codereview.chromium.org/418133012/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java (right): https://codereview.chromium.org/418133012/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java#newcode239 chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java:239: long nativeWebsiteSettingsPopupAndroid, WebContents webContents); ...
6 years, 4 months ago (2014-08-06 01:01:05 UTC) #14
jww
https://codereview.chromium.org/418133012/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java File chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java (right): https://codereview.chromium.org/418133012/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java#newcode239 chrome/android/java/src/org/chromium/chrome/browser/WebsiteSettingsPopup.java:239: long nativeWebsiteSettingsPopupAndroid, WebContents webContents); On 2014/08/06 01:01:05, Ted C ...
6 years, 4 months ago (2014-08-06 01:16:08 UTC) #15
Peter Kasting
https://codereview.chromium.org/418133012/diff/120001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/418133012/diff/120001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode399 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:399: base::Bind(&WebsiteSettingsPopupView::HandleButtonPressedAsync, Do you really need to do this asynchronously? ...
6 years, 4 months ago (2014-08-06 01:19:07 UTC) #16
jww
sky@, can you take a look at the handler changes in chrome/browser/ui/views/website_settings/website_settings_popup_view.cc as per pkasting's ...
6 years, 4 months ago (2014-08-06 17:58:19 UTC) #17
sky
On 2014/08/06 17:58:19, jww wrote: > sky@, can you take a look at the handler ...
6 years, 4 months ago (2014-08-06 18:11:22 UTC) #18
jww
On 2014/08/06 18:11:22, sky wrote: > On 2014/08/06 17:58:19, jww wrote: > > sky@, can ...
6 years, 4 months ago (2014-08-06 20:49:04 UTC) #19
jam
just looked at content https://codereview.chromium.org/418133012/diff/180001/content/browser/ssl/ssl_host_state.h File content/browser/ssl/ssl_host_state.h (left): https://codereview.chromium.org/418133012/diff/180001/content/browser/ssl/ssl_host_state.h#oldcode1 content/browser/ssl/ssl_host_state.h:1: // Copyright (c) 2012 The ...
6 years, 4 months ago (2014-08-06 21:27:27 UTC) #20
jww
On 2014/08/06 21:27:27, jam wrote: > just looked at content > > https://codereview.chromium.org/418133012/diff/180001/content/browser/ssl/ssl_host_state.h > File ...
6 years, 4 months ago (2014-08-06 21:36:02 UTC) #21
Peter Kasting
https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode390 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:390: base::Bind(&WebsiteSettingsPopupView::HandleLinkClickedAsync, So can we get rid of this async ...
6 years, 4 months ago (2014-08-07 03:56:58 UTC) #22
jww
https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode390 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:390: base::Bind(&WebsiteSettingsPopupView::HandleLinkClickedAsync, On 2014/08/07 03:56:57, Peter Kasting wrote: > So ...
6 years, 4 months ago (2014-08-08 16:48:50 UTC) #23
Peter Kasting
https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc File chrome/browser/ui/views/website_settings/website_settings_popup_view.cc (right): https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/views/website_settings/website_settings_popup_view.cc#newcode390 chrome/browser/ui/views/website_settings/website_settings_popup_view.cc:390: base::Bind(&WebsiteSettingsPopupView::HandleLinkClickedAsync, On 2014/08/08 16:48:50, jww wrote: > On 2014/08/07 ...
6 years, 4 months ago (2014-08-08 17:15:12 UTC) #24
jww
jam@ and pkasting@, can you take a look at the latest to see if it ...
6 years, 4 months ago (2014-08-11 19:21:28 UTC) #25
Peter Kasting
https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/website_settings/website_settings_ui.h File chrome/browser/ui/website_settings/website_settings_ui.h (right): https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/website_settings/website_settings_ui.h#newcode101 chrome/browser/ui/website_settings/website_settings_ui.h:101: // bypass the SSL error for this host. On ...
6 years, 4 months ago (2014-08-11 20:24:20 UTC) #26
jww
On 2014/08/11 20:24:20, Peter Kasting wrote: > https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/website_settings/website_settings_ui.h > File chrome/browser/ui/website_settings/website_settings_ui.h (right): > > https://codereview.chromium.org/418133012/diff/180001/chrome/browser/ui/website_settings/website_settings_ui.h#newcode101 ...
6 years, 4 months ago (2014-08-11 20:27:10 UTC) #27
jww
On 2014/08/11 20:27:10, jww wrote: > On 2014/08/11 20:24:20, Peter Kasting wrote: > > > ...
6 years, 4 months ago (2014-08-11 21:12:55 UTC) #28
Peter Kasting
On 2014/08/11 21:12:55, jww wrote: > I was wrong. Deny is currently used, implicitly, when ...
6 years, 4 months ago (2014-08-11 22:35:41 UTC) #29
jww
On 2014/08/11 22:35:41, Peter Kasting wrote: > On 2014/08/11 21:12:55, jww wrote: > > I ...
6 years, 4 months ago (2014-08-11 23:14:41 UTC) #30
Peter Kasting
On 2014/08/11 23:14:41, jww wrote: > I think removing > the API to do this ...
6 years, 4 months ago (2014-08-12 01:03:55 UTC) #31
jam
https://codereview.chromium.org/418133012/diff/260001/content/public/browser/ssl_host_state_delegate.h File content/public/browser/ssl_host_state_delegate.h (right): https://codereview.chromium.org/418133012/diff/260001/content/public/browser/ssl_host_state_delegate.h#newcode52 content/public/browser/ssl_host_state_delegate.h:52: virtual void RevokeUserDecisionsHard(const std::string& host) = 0; these two ...
6 years, 4 months ago (2014-08-12 02:24:54 UTC) #32
jww
jam@, I've addressed your point. pkasting@, I think we should address this separately, so I ...
6 years, 4 months ago (2014-08-12 04:41:20 UTC) #33
jam
lgtm
6 years, 4 months ago (2014-08-13 06:42:59 UTC) #34
jww
The CQ bit was checked by jww@chromium.org
6 years, 4 months ago (2014-08-13 13:52:16 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/418133012/300001
6 years, 4 months ago (2014-08-13 13:54:19 UTC) #36
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-13 15:49:14 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-13 16:10:52 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg/builds/6299)
6 years, 4 months ago (2014-08-13 16:10:53 UTC) #39
jww
The CQ bit was checked by jww@chromium.org
6 years, 4 months ago (2014-08-13 16:11:39 UTC) #40
jww
The CQ bit was unchecked by jww@chromium.org
6 years, 4 months ago (2014-08-13 16:12:15 UTC) #41
jww
The CQ bit was checked by jww@chromium.org
6 years, 4 months ago (2014-08-13 16:12:54 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jww@chromium.org/418133012/300001
6 years, 4 months ago (2014-08-13 16:14:42 UTC) #43
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 16:20:28 UTC) #44
Message was sent while issue was closed.
Committed patchset #16 (300001) as 289311

Powered by Google App Engine
This is Rietveld 408576698