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

Issue 1162663004: Introduce browser-side plumbing for sending the lock icon status to DevTools. (Closed)

Created:
5 years, 6 months ago by lgarron
Modified:
5 years, 6 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce browser-side plumbing for sending the lock icon status to DevTools. Based on the plumbing doc at [1]. estark@ co-authored much of this commit through pair programming. This CL adds a SecurityStyleChanged() method that is fired when the lock icon changes. This method will be implemented in RenderFrameDevToolsAgentHost in a follow-up CL, which will pass it on to DevTools. [1] https://docs.google.com/document/d/1kMU5dPi2PwQ7skbgwlfQsenYdTwOi2ya2WYla2uy0OU/edit BUG=445359, 484395 Committed: https://crrev.com/662dd52cdfea198f6a145f9da5a7c8b0c8133643 Cr-Commit-Position: refs/heads/master@{#333381}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add a browser test for SecurityStyleChanged. #

Patch Set 3 : Style changes. #

Patch Set 4 : Rebased onto latest master. #

Total comments: 20

Patch Set 5 : Address reviewer comments. #

Patch Set 6 : const #

Total comments: 8

Patch Set 7 : unconst #

Patch Set 8 : Nits. #

Total comments: 4

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -1 line) Patch
M chrome/browser/ssl/connection_security_helper.h View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/ssl/connection_security_helper.cc View 1 2 3 4 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 8 2 chunks +98 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M content/public/browser/web_contents_delegate.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_delegate.cc View 6 2 chunks +6 lines, -0 lines 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/common/security_style.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (6 generated)
estark
Great! Just left a few style comments inline. A couple other suggestions: * wrap CL ...
5 years, 6 months ago (2015-06-03 06:40:28 UTC) #2
lgarron
Hi Charlie, Ryan, and Peter, This is the first of a set of CLs to ...
5 years, 6 months ago (2015-06-03 23:24:03 UTC) #5
Ryan Sleevi
I'm OK with this. You don't need my LGTM, but LGTM from the perspective of ...
5 years, 6 months ago (2015-06-03 23:43:52 UTC) #6
Peter Kasting
LGTM https://codereview.chromium.org/1162663004/diff/80001/chrome/browser/ui/browser.h File chrome/browser/ui/browser.h (right): https://codereview.chromium.org/1162663004/diff/80001/chrome/browser/ui/browser.h#newcode465 chrome/browser/ui/browser.h:465: content::SecurityStyle GetSecurityStyle( Nit: GetSecurityStyleForWebContents()? Otherwise it sounds like ...
5 years, 6 months ago (2015-06-03 23:59:34 UTC) #7
lgarron
https://codereview.chromium.org/1162663004/diff/80001/chrome/browser/ssl/connection_security_helper.cc File chrome/browser/ssl/connection_security_helper.cc (right): https://codereview.chromium.org/1162663004/diff/80001/chrome/browser/ssl/connection_security_helper.cc#newcode148 chrome/browser/ssl/connection_security_helper.cc:148: NOTREACHED(); On 2015/06/03 at 23:43:52, Ryan Sleevi wrote: > ...
5 years, 6 months ago (2015-06-04 00:26:35 UTC) #8
Peter Kasting
https://codereview.chromium.org/1162663004/diff/80001/chrome/browser/ui/browser.h File chrome/browser/ui/browser.h (right): https://codereview.chromium.org/1162663004/diff/80001/chrome/browser/ui/browser.h#newcode465 chrome/browser/ui/browser.h:465: content::SecurityStyle GetSecurityStyle( On 2015/06/04 00:26:34, lgarron wrote: > On ...
5 years, 6 months ago (2015-06-04 00:29:15 UTC) #9
Charlie Reis
content/ LGTM with nits. https://codereview.chromium.org/1162663004/diff/120001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://codereview.chromium.org/1162663004/diff/120001/content/public/browser/web_contents_delegate.h#newcode491 content/public/browser/web_contents_delegate.h:491: virtual SecurityStyle GetSecurityStyle(const WebContents* web_contents) ...
5 years, 6 months ago (2015-06-04 18:49:17 UTC) #10
Peter Kasting
https://codereview.chromium.org/1162663004/diff/120001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://codereview.chromium.org/1162663004/diff/120001/content/public/browser/web_contents_delegate.h#newcode491 content/public/browser/web_contents_delegate.h:491: virtual SecurityStyle GetSecurityStyle(const WebContents* web_contents) const; On 2015/06/04 18:49:16, ...
5 years, 6 months ago (2015-06-04 20:30:20 UTC) #11
Charlie Reis
[+jam for content API discussion] https://codereview.chromium.org/1162663004/diff/120001/content/public/browser/web_contents_delegate.h File content/public/browser/web_contents_delegate.h (right): https://codereview.chromium.org/1162663004/diff/120001/content/public/browser/web_contents_delegate.h#newcode491 content/public/browser/web_contents_delegate.h:491: virtual SecurityStyle GetSecurityStyle(const WebContents* ...
5 years, 6 months ago (2015-06-04 20:41:50 UTC) #13
jam
On 2015/06/04 20:41:50, Charlie Reis wrote: > [+jam for content API discussion] > > https://codereview.chromium.org/1162663004/diff/120001/content/public/browser/web_contents_delegate.h ...
5 years, 6 months ago (2015-06-04 21:38:25 UTC) #14
Peter Kasting
On 2015/06/04 21:38:25, jam wrote: > On 2015/06/04 20:41:50, Charlie Reis wrote: > > [+jam ...
5 years, 6 months ago (2015-06-04 21:51:00 UTC) #15
lgarron
https://codereview.chromium.org/1162663004/diff/80001/chrome/browser/ui/browser.h File chrome/browser/ui/browser.h (right): https://codereview.chromium.org/1162663004/diff/80001/chrome/browser/ui/browser.h#newcode465 chrome/browser/ui/browser.h:465: content::SecurityStyle GetSecurityStyle( On 2015/06/04 at 00:29:15, Peter Kasting wrote: ...
5 years, 6 months ago (2015-06-05 00:25:12 UTC) #16
Peter Kasting
LGTM. I'd like for John to respond to my comments on the content API restrictions, ...
5 years, 6 months ago (2015-06-05 00:37:48 UTC) #17
jam
On 2015/06/04 21:51:00, Peter Kasting wrote: > On 2015/06/04 21:38:25, jam wrote: > > On ...
5 years, 6 months ago (2015-06-05 04:15:15 UTC) #18
Peter Kasting
On 2015/06/05 04:15:15, jam wrote: > On 2015/06/04 21:51:00, Peter Kasting wrote: > > Note ...
5 years, 6 months ago (2015-06-05 10:28:58 UTC) #19
estark
Lucas, I think you can go ahead and land this one after fixing Peter's final ...
5 years, 6 months ago (2015-06-06 06:38:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1162663004/180001
5 years, 6 months ago (2015-06-08 22:26:34 UTC) #23
lgarron
https://codereview.chromium.org/1162663004/diff/160001/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1162663004/diff/160001/chrome/browser/ui/browser_browsertest.cc#newcode354 chrome/browser/ui/browser_browsertest.cc:354: const content::SecurityStyle latest_security_style() { On 2015/06/05 at 00:37:48, Peter ...
5 years, 6 months ago (2015-06-08 22:30:20 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:180001)
5 years, 6 months ago (2015-06-08 23:20:08 UTC) #25
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/662dd52cdfea198f6a145f9da5a7c8b0c8133643 Cr-Commit-Position: refs/heads/master@{#333381}
5 years, 6 months ago (2015-06-08 23:21:13 UTC) #26
jam
wait, peter isn't a content/public owner. charlie and i had commented that the const needs ...
5 years, 6 months ago (2015-06-10 22:22:04 UTC) #27
lgarron
5 years, 6 months ago (2015-06-10 22:46:17 UTC) #28
Message was sent while issue was closed.
On 2015/06/10 at 22:22:04, jam wrote:
> wait, peter isn't a content/public owner. charlie and i had commented that the
const needs to be removed. this landed with it. please remove it in a followup
now.

jam@: I'm assuming you mean GetSecurityStyle() should not take a const
WebContents (in addition to not being a const function), similar to other
WebContentsDelegate functions. I've created a CL:
https://codereview.chromium.org/1173213002

Powered by Google App Engine
This is Rietveld 408576698