| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/views/frame/web_app_left_header_view_ash.h" | 5 #include "chrome/browser/ui/views/frame/web_app_left_header_view_ash.h" |
| 6 | 6 |
| 7 #include "ash/frame/caption_buttons/frame_caption_button.h" | 7 #include "ash/frame/caption_buttons/frame_caption_button.h" |
| 8 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" | 8 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
| 9 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 10 #include "chrome/browser/ssl/chrome_security_state_model_client.h" | 10 #include "chrome/browser/ssl/chrome_security_state_model_client.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 content::NavigationEntry* nav_entry = tab->GetController().GetVisibleEntry(); | 87 content::NavigationEntry* nav_entry = tab->GetController().GetVisibleEntry(); |
| 88 // The visible entry can be NULL in the case of window.open(""). | 88 // The visible entry can be NULL in the case of window.open(""). |
| 89 if (!nav_entry) | 89 if (!nav_entry) |
| 90 return; | 90 return; |
| 91 | 91 |
| 92 ChromeSecurityStateModelClient* security_model_client = | 92 ChromeSecurityStateModelClient* security_model_client = |
| 93 ChromeSecurityStateModelClient::FromWebContents(tab); | 93 ChromeSecurityStateModelClient::FromWebContents(tab); |
| 94 DCHECK(security_model_client); | 94 DCHECK(security_model_client); |
| 95 | 95 |
| 96 chrome::ShowWebsiteSettings(browser_view_->browser(), tab, | 96 chrome::ShowWebsiteSettings(browser_view_->browser(), tab, |
| 97 nav_entry->GetURL(), | 97 nav_entry->GetVirtualURL(), |
| 98 security_model_client->GetSecurityInfo()); | 98 security_model_client->GetSecurityInfo()); |
| 99 } | 99 } |
| OLD | NEW |