Chromium Code Reviews| Index: chrome/browser/ui/views/browser_dialogs_views_mac.cc |
| diff --git a/chrome/browser/ui/views/browser_dialogs_views_mac.cc b/chrome/browser/ui/views/browser_dialogs_views_mac.cc |
| index 702aa699f88bf4457d19330879e32b2132b827d1..ea4ab31d0650795289f96b5ca8752e0475b5c730 100644 |
| --- a/chrome/browser/ui/views/browser_dialogs_views_mac.cc |
| +++ b/chrome/browser/ui/views/browser_dialogs_views_mac.cc |
| @@ -9,7 +9,7 @@ |
| #include "chrome/browser/ui/browser_dialogs.h" |
| #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" |
| #include "chrome/browser/ui/views/content_setting_bubble_contents.h" |
| -#include "chrome/browser/ui/views/page_info/website_settings_popup_view.h" |
| +#include "chrome/browser/ui/views/page_info/page_info_popup_view.h" |
| #include "chrome/browser/ui/views/task_manager_view.h" |
| #include "chrome/browser/ui/views/update_recommended_message_box.h" |
| @@ -21,7 +21,7 @@ |
| namespace chrome { |
| -void ShowWebsiteSettingsBubbleViewsAtPoint( |
| +void ShowPageInfoBubbleViewsAtPoint( |
| const gfx::Point& anchor_point, |
| Profile* profile, |
| content::WebContents* web_contents, |
| @@ -34,14 +34,13 @@ void ShowWebsiteSettingsBubbleViewsAtPoint( |
| // earlier because the popup is shown on mouse release (but dismissed on |
| // mouse pressed). A Cocoa browser does both on mouse pressed, so a check |
| // when showing is sufficient. |
| - if (WebsiteSettingsPopupView::GetShownPopupType() != |
| - WebsiteSettingsPopupView::POPUP_NONE) { |
| + if (PageInfoPopupView::GetShownPopupType() != PageInfoPopupView::POPUP_NONE) { |
|
msw
2017/03/24 16:25:00
nit: remove curlies
lgarron
2017/03/24 18:40:19
I want to avoid changing the structure of the code
|
| return; |
| } |
| - WebsiteSettingsPopupView::ShowPopup( |
| - nullptr, gfx::Rect(anchor_point, gfx::Size()), profile, web_contents, |
| - virtual_url, security_info); |
| + PageInfoPopupView::ShowPopup(nullptr, gfx::Rect(anchor_point, gfx::Size()), |
| + profile, web_contents, virtual_url, |
| + security_info); |
| } |
| void ShowBookmarkBubbleViewsAtPoint(const gfx::Point& anchor_point, |