Chromium Code Reviews| 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, |