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

Unified Diff: chrome/browser/ui/browser.cc

Issue 2410043003: Add a console messsage for HTTP-bad (Closed)
Patch Set: de-const other WebContentsDelegates Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/test/data/ssl/page_with_frame.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index e6cc266c85a03406dd0705897fd5cea1f6154b3b..ff81232e78431f61261ed696c6a1e86b8cb0a092 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1424,12 +1424,16 @@ void Browser::NavigationStateChanged(WebContents* source,
hosted_app_controller_->UpdateLocationBarVisibility(true);
}
-void Browser::VisibleSSLStateChanged(const WebContents* source) {
+void Browser::VisibleSSLStateChanged(WebContents* source) {
// When the current tab's SSL state changes, we need to update the URL
// bar to reflect the new state.
DCHECK(source);
if (tab_strip_model_->GetActiveWebContents() == source)
UpdateToolbar(false);
+
+ ChromeSecurityStateModelClient* security_model =
+ ChromeSecurityStateModelClient::FromWebContents(source);
felt 2016/10/17 16:59:33 To make sure I understand: (1) Something triggers
estark 2016/10/17 17:14:20 CSSMC::VisibleSSLStateChanged() computes the Secur
felt 2016/10/17 17:18:36 Oh I see, I missed that there was a call to GetSec
+ security_model->VisibleSSLStateChanged();
}
void Browser::AddNewContents(WebContents* source,
« no previous file with comments | « chrome/browser/ui/browser.h ('k') | chrome/test/data/ssl/page_with_frame.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698