Index: chrome/browser/ui/extensions/shell_window.cc |
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc |
index 701e97cb557041b8f1161ba30a8407ee62d34b9e..2c93c9fa920058659bcae2ec5aa041ec78b83bc0 100644 |
--- a/chrome/browser/ui/extensions/shell_window.cc |
+++ b/chrome/browser/ui/extensions/shell_window.cc |
@@ -45,6 +45,8 @@ class ShellWindowController : public ExtensionWindowController { |
virtual bool CanClose(Reason* reason) const OVERRIDE; |
virtual void SetFullscreenMode(bool is_fullscreen, |
const GURL& extension_url) const OVERRIDE; |
+ virtual bool IsVisibleToExtension( |
+ const extensions::Extension* extension) const OVERRIDE; |
private: |
ShellWindow* shell_window_; |
@@ -81,6 +83,11 @@ void ShellWindowController::SetFullscreenMode(bool is_fullscreen, |
// TODO(mihaip): implement |
} |
+bool ShellWindowController::IsVisibleToExtension( |
+ const extensions::Extension* extension) const { |
+ return shell_window_->extension() == extension; |
+} |
+ |
} // namespace internal |
ShellWindow* ShellWindow::Create(Profile* profile, |