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

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

Issue 2410043003: Add a console messsage for HTTP-bad (Closed)
Patch Set: elawrence, sky comments 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
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index e6cc266c85a03406dd0705897fd5cea1f6154b3b..acc552f6dd6e869053ac0c7db5a6fd67facc07f3 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -1428,8 +1428,13 @@ void Browser::VisibleSSLStateChanged(const 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)
+ WebContents* active_contents = tab_strip_model_->GetActiveWebContents();
+ if (active_contents == source) {
sky 2016/10/14 22:21:47 Why do you only care about the active webcontents?
estark 2016/10/14 23:50:01 Done, but there's an unfortunate side effect of th
sky 2016/10/17 15:41:48 Ick. I think it better to change the function to n
estark 2016/10/17 16:11:13 Why? This API explicitly goes against the content
estark 2016/10/17 16:14:08 Actually re-reading your comment I'm not sure I un
UpdateToolbar(false);
+ ChromeSecurityStateModelClient* security_model =
+ ChromeSecurityStateModelClient::FromWebContents(active_contents);
+ security_model->VisibleSSLStateChanged();
+ }
}
void Browser::AddNewContents(WebContents* source,

Powered by Google App Engine
This is Rietveld 408576698