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

Issue 7542029: Profiles: SSLManger broadcasts SSL_INTERNAL_STATE_CHANGED with a NavigationController. (Closed)

Created:
9 years, 4 months ago by Elliot Glaysher
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, Avi (use Gerrit), jam, brettw-cc_chromium.org
Visibility:
Public.

Description

Profiles: SSLManger broadcasts SSL_INTERNAL_STATE_CHANGED with a Source<BrowserContext> instead of a Source<NavigationController>. We do this since SSLManagers want to hear all the notifications coming from different NavigationControllers; not just from the one they are associated with. BUG=87457 TEST=none R=abarth TBR=darin Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95541

Patch Set 1 #

Patch Set 2 : Move from NavigationController to BrowserContext as the source. #

Total comments: 1

Patch Set 3 : abarth's final comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -11 lines) Patch
M content/browser/ssl/ssl_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/ssl/ssl_manager.cc View 1 2 3 chunks +6 lines, -3 lines 0 comments Download
M content/browser/ssl/ssl_policy_backend.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/ssl/ssl_policy_backend.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/content_notification_types.h View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Elliot Glaysher
I've tested this change by making sure the insecure content infobar still shows.
9 years, 4 months ago (2011-08-02 22:56:13 UTC) #1
eroman
I am not an OWNERS for this code. FWIW, LGTM.
9 years, 4 months ago (2011-08-02 23:29:14 UTC) #2
Elliot Glaysher
According to content/browser/net/OWNERS, you are. Do you have any better recommendations? The svn blame log ...
9 years, 4 months ago (2011-08-02 23:31:11 UTC) #3
Elliot Glaysher
I am dumb. Switching to Adam for review.
9 years, 4 months ago (2011-08-02 23:36:10 UTC) #4
abarth-chromium
Hum... I think we need to broadcast this message to all the tabs in the ...
9 years, 4 months ago (2011-08-02 23:40:20 UTC) #5
Elliot Glaysher
On 2011/08/02 23:40:20, abarth wrote: > Hum... I think we need to broadcast this message ...
9 years, 4 months ago (2011-08-02 23:48:36 UTC) #6
Elliot Glaysher
Another note: The current usage of NotificationService is just weird. Individual listeners listen on a ...
9 years, 4 months ago (2011-08-02 23:50:09 UTC) #7
abarth-chromium
Thanks for checking. LGTM.
9 years, 4 months ago (2011-08-02 23:50:38 UTC) #8
abarth-chromium
Is there a better design we should use instead? I might not have set it ...
9 years, 4 months ago (2011-08-02 23:52:49 UTC) #9
Elliot Glaysher
I just checked again after noticing that I didn't also update the notification registration, too. ...
9 years, 4 months ago (2011-08-03 00:05:21 UTC) #10
abarth-chromium
> A question: is it OK to receive SSL_INTERNAL_STATE_CHANGED redundantly? Yes.
9 years, 4 months ago (2011-08-03 00:11:58 UTC) #11
abarth-chromium
> A question: is it OK to receive SSL_INTERNAL_STATE_CHANGED redundantly? Yes.
9 years, 4 months ago (2011-08-03 00:11:59 UTC) #12
Elliot Glaysher
PTAL. All that I've done is move the notification source from the NavigationController to the ...
9 years, 4 months ago (2011-08-04 21:06:47 UTC) #13
abarth-chromium
Yay! Thanks. http://codereview.chromium.org/7542029/diff/6001/content/browser/ssl/ssl_manager.cc File content/browser/ssl/ssl_manager.cc (right): http://codereview.chromium.org/7542029/diff/6001/content/browser/ssl/ssl_manager.cc#newcode53 content/browser/ssl/ssl_manager.cc:53: Details<NavigationController>(controller)); These details shouldn't be needed. I'd ...
9 years, 4 months ago (2011-08-04 21:09:32 UTC) #14
abarth-chromium
LGTM (modulo addressing the comment above)
9 years, 4 months ago (2011-08-04 21:10:01 UTC) #15
Elliot Glaysher
9 years, 4 months ago (2011-08-04 23:55:36 UTC) #16
TBR=darin (I am only changing the comment in content_notification_types.h)

Powered by Google App Engine
This is Rietveld 408576698