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

Unified Diff: chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm

Issue 2899583002: issue2882533003_180001.diff.txt (patch set 6)
Patch Set: DIFF Created 3 years, 7 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/cocoa/page_info/page_info_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm b/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm
index 59cf17271d727ca9236b9adaf72f1696109ce0b1..12f7ae7f0445e6b873b90bbf7b29f06fef5e9ca5 100644
--- a/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/page_info/page_info_bubble_controller.mm
@@ -15,7 +15,7 @@
#import "chrome/browser/certificate_viewer.h"
#include "chrome/browser/infobars/infobar_service.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/ui/browser_dialogs.h"
+#include "chrome/browser/ui/cocoa/browser_dialogs_views_mac.h"
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
#import "chrome/browser/ui/cocoa/info_bubble_view.h"
#import "chrome/browser/ui/cocoa/info_bubble_window.h"
@@ -1273,9 +1273,14 @@ void PageInfoUIBridge::Show(gfx::NativeWindow parent,
const GURL& virtual_url,
const security_state::SecurityInfo& security_info) {
if (ui::MaterialDesignController::IsSecondaryUiMaterial()) {
+ BrowserWindowController* controller =
+ [BrowserWindowController browserWindowControllerForWindow:parent];
+ LocationBarViewMac* location_bar = [controller locationBarBridge];
+ LocationBarDecoration* decoration =
+ location_bar ? location_bar->GetPageInfoDecoration() : nullptr;
chrome::ShowPageInfoBubbleViewsAtPoint(
gfx::ScreenPointFromNSPoint(AnchorPointForWindow(parent)), profile,
- web_contents, virtual_url, security_info);
+ web_contents, virtual_url, security_info, decoration);
return;
}
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm ('k') | chrome/browser/ui/cocoa/tab_dialogs_views_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698