Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
index 96ea6f193352e00ad243145d0818c05b575d6dd3..92fe33df1ca9105c5ea3a6cf37f74dfb7234bbed 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
@@ -406,7 +406,7 @@ void BrowserWindowCocoa::ExitFullscreen() { |
[controller_ exitAnyFullscreen]; |
} |
-void BrowserWindowCocoa::UpdateFullscreenExitBubbleContent( |
+void BrowserWindowCocoa::UpdateExclusiveAccessExitBubbleContent( |
const GURL& url, |
ExclusiveAccessBubbleType bubble_type) { |
[controller_ updateFullscreenExitBubbleURL:url bubbleType:bubble_type]; |
@@ -820,3 +820,26 @@ void BrowserWindowCocoa::ExecuteExtensionCommand( |
const extensions::Command& command) { |
[cocoa_controller() executeExtensionCommand:extension->id() command:command]; |
} |
+ |
+ExclusiveAccessContext* BrowserWindowCocoa::GetExclusiveAccessContext() { |
+ return this; |
+} |
+ |
+Profile* BrowserWindowCocoa::GetProfile() { |
+ return browser_->profile(); |
+} |
+ |
+WebContents* BrowserWindowCocoa::GetActiveWebContents() { |
+ return browser_->tab_strip_model()->GetActiveWebContents(); |
+} |
+ |
+void BrowserWindowCocoa::UnhideDownloadShelf() { |
+ GetDownloadShelf()->Unhide(); |
+} |
+ |
+void BrowserWindowCocoa::HideDownloadShelf() { |
+ GetDownloadShelf()->Hide(); |
+ StatusBubble* statusBubble = GetStatusBubble(); |
+ if (statusBubble) |
+ statusBubble->Hide(); |
+} |