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

Issue 2562503002: Generalize WebContentsObserver::SecurityStyleChanged (Closed)

Created:
4 years ago by cjgrant
Modified:
4 years ago
CC:
chromium-reviews, jam, feature-vr-reviews_chromium.org, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, lgarron
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Generalize WebContentsObserver::SecurityStyleChanged. This will put the onus on individual observers to extract the security information they require, after a change has occurred. The intent is to allow chrome/browser-residing observers to monitor security level changes, independent of style. BUG=641508 Committed: https://crrev.com/6d1d727a5e0aad78d6151820c8b3ae4d6616cf56 Cr-Commit-Position: refs/heads/master@{#437659}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Refactor the WebContentsObserver SecurityStyleChanged callback. #

Patch Set 3 : Formatting and fixes. #

Total comments: 2

Patch Set 4 : Fix tab helper tests; new explanations must replace previous, not be appended to them. #

Patch Set 5 : Remove VrShell-specific changes from this CL. #

Total comments: 5

Patch Set 6 : Rebase onto VrShell observer usage. #

Patch Set 7 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -67 lines) Patch
M chrome/browser/android/vr_shell/vr_web_contents_observer.h View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/android/vr_shell/vr_web_contents_observer.cc View 1 2 3 4 5 2 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ssl/security_state_tab_helper_browser_tests.cc View 1 2 3 7 chunks +21 lines, -20 lines 0 comments Download
M content/browser/devtools/protocol/security_handler.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/devtools/protocol/security_handler.cc View 1 2 2 chunks +8 lines, -9 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -8 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 3 chunks +2 lines, -9 lines 0 comments Download

Messages

Total messages: 49 (26 generated)
cjgrant
Bo and Emily, could you take a look at this? There are a few ways ...
4 years ago (2016-12-07 18:51:07 UTC) #2
boliu
https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h (right): https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h#newcode311 content/public/browser/web_contents_observer.h:311: virtual void DidChangeVisibleSecurityState() {} I don't understand why this ...
4 years ago (2016-12-07 18:58:03 UTC) #3
cjgrant
https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h (right): https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h#newcode311 content/public/browser/web_contents_observer.h:311: virtual void DidChangeVisibleSecurityState() {} On 2016/12/07 18:58:03, boliu wrote: ...
4 years ago (2016-12-07 19:15:53 UTC) #4
boliu
https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h (right): https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h#newcode311 content/public/browser/web_contents_observer.h:311: virtual void DidChangeVisibleSecurityState() {} On 2016/12/07 19:15:53, cjgrant wrote: ...
4 years ago (2016-12-07 19:53:19 UTC) #5
cjgrant
On 2016/12/07 19:53:19, boliu wrote: > https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h > File content/public/browser/web_contents_observer.h (right): > > https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h#newcode311 > ...
4 years ago (2016-12-07 20:04:53 UTC) #6
boliu
On 2016/12/07 20:04:53, cjgrant wrote: > On 2016/12/07 19:53:19, boliu wrote: > > > https://codereview.chromium.org/2562503002/diff/1/content/public/browser/web_contents_observer.h ...
4 years ago (2016-12-07 21:08:09 UTC) #7
estark
Yeah, my preference is for one observer method. SecurityStyleChanged only has one non-test override and ...
4 years ago (2016-12-07 21:15:49 UTC) #8
cjgrant
On 2016/12/07 21:15:49, estark wrote: > Yeah, my preference is for one observer method. SecurityStyleChanged ...
4 years ago (2016-12-07 21:43:20 UTC) #9
cjgrant
Folks, PTAL when you can. I'm assuming the browser tests that check security style changes ...
4 years ago (2016-12-07 22:58:14 UTC) #10
boliu
content lgtm https://codereview.chromium.org/2562503002/diff/40001/content/browser/devtools/protocol/security_handler.cc File content/browser/devtools/protocol/security_handler.cc (right): https://codereview.chromium.org/2562503002/diff/40001/content/browser/devtools/protocol/security_handler.cc#newcode94 content/browser/devtools/protocol/security_handler.cc:94: web_contents()->GetDelegate()->GetSecurityStyle( there's prior example with ShowCertificateViewerInDevTools below, ...
4 years ago (2016-12-08 05:11:30 UTC) #16
estark
lgtm On 2016/12/08 05:11:30, boliu wrote: > content lgtm > > https://codereview.chromium.org/2562503002/diff/40001/content/browser/devtools/protocol/security_handler.cc > File content/browser/devtools/protocol/security_handler.cc ...
4 years ago (2016-12-08 18:11:04 UTC) #26
cjgrant
mattm@chromium.org: Please review changes in - safe_browsing_blocking_page_test.cc clamy@chromium.org: Please review changes in - web_contents_observer.h Thanks!
4 years ago (2016-12-08 18:19:53 UTC) #28
dgozman
https://codereview.chromium.org/2562503002/diff/40001/content/browser/devtools/protocol/security_handler.cc File content/browser/devtools/protocol/security_handler.cc (right): https://codereview.chromium.org/2562503002/diff/40001/content/browser/devtools/protocol/security_handler.cc#newcode94 content/browser/devtools/protocol/security_handler.cc:94: web_contents()->GetDelegate()->GetSecurityStyle( On 2016/12/08 05:11:30, boliu wrote: > there's prior ...
4 years ago (2016-12-08 19:07:49 UTC) #29
boliu
On 2016/12/08 19:07:49, dgozman wrote: > https://codereview.chromium.org/2562503002/diff/40001/content/browser/devtools/protocol/security_handler.cc > File content/browser/devtools/protocol/security_handler.cc (right): > > https://codereview.chromium.org/2562503002/diff/40001/content/browser/devtools/protocol/security_handler.cc#newcode94 > ...
4 years ago (2016-12-08 19:18:48 UTC) #30
mattm
safe_browsing lgtm
4 years ago (2016-12-08 21:12:49 UTC) #31
clamy
Thanks! A few comments below. https://codereview.chromium.org/2562503002/diff/80001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2562503002/diff/80001/content/browser/web_contents/web_contents_impl.cc#newcode1467 content/browser/web_contents/web_contents_impl.cc:1467: for (auto& observer : ...
4 years ago (2016-12-09 14:25:44 UTC) #32
cjgrant
https://codereview.chromium.org/2562503002/diff/80001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/2562503002/diff/80001/content/browser/web_contents/web_contents_impl.cc#newcode1467 content/browser/web_contents/web_contents_impl.cc:1467: for (auto& observer : observers_) { On 2016/12/09 14:25:44, ...
4 years ago (2016-12-09 16:08:29 UTC) #33
estark
https://codereview.chromium.org/2562503002/diff/80001/content/public/browser/web_contents_observer.h File content/public/browser/web_contents_observer.h (right): https://codereview.chromium.org/2562503002/diff/80001/content/public/browser/web_contents_observer.h#newcode300 content/public/browser/web_contents_observer.h:300: virtual void DidChangeVisibleSecurityState() {} On 2016/12/09 14:25:44, clamy wrote: ...
4 years ago (2016-12-09 16:12:44 UTC) #34
clamy
Thanks! Lgtm.
4 years ago (2016-12-09 17:15:36 UTC) #35
mthiesse
vr_shell/ lgtm
4 years ago (2016-12-09 17:37:00 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2562503002/120001
4 years ago (2016-12-09 20:54:00 UTC) #44
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-09 21:17:42 UTC) #47
commit-bot: I haz the power
4 years ago (2016-12-12 14:41:08 UTC) #49
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/6d1d727a5e0aad78d6151820c8b3ae4d6616cf56
Cr-Commit-Position: refs/heads/master@{#437659}

Powered by Google App Engine
This is Rietveld 408576698