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

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

Issue 2882533003: [Mac] Hover/Active Omnibox Icon States for Secondary UI MD (Closed)
Patch Set: Fixes for tapted 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..0a732e579dea347a7bc54f3310792564d019dba6 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
@@ -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* locationBar = [controller locationBarBridge];
tapted 2017/05/18 03:40:39 nit: locationBar -> location_bar. and-hm - this d
spqchan 2017/05/19 01:47:28 Done.
+ LocationBarDecoration* decoration =
+ locationBar ? locationBar->GetPageInfoDecoration() : nullptr;
chrome::ShowPageInfoBubbleViewsAtPoint(
gfx::ScreenPointFromNSPoint(AnchorPointForWindow(parent)), profile,
- web_contents, virtual_url, security_info);
+ web_contents, virtual_url, security_info, decoration);
return;
}

Powered by Google App Engine
This is Rietveld 408576698