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 ff7881de4aac72bb417aeeb8e0a6cf8354d9c246..56b762ea3ce9ec5a68f61b23ff91517b9abbad34 100644 |
--- a/chrome/browser/ui/extensions/shell_window.cc |
+++ b/chrome/browser/ui/extensions/shell_window.cc |
@@ -46,6 +46,9 @@ class ShellWindowController : public ExtensionWindowController { |
virtual void SetFullscreenMode(bool is_fullscreen, |
const GURL& extension_url) const OVERRIDE; |
+ protected: |
+ virtual bool IsVisibleToExtension(const Extension* extension) const OVERRIDE; |
+ |
private: |
ShellWindow* shell_window_; |
@@ -81,6 +84,11 @@ void ShellWindowController::SetFullscreenMode(bool is_fullscreen, |
// TODO(mihaip): implement |
} |
+bool ShellWindowController::IsVisibleToExtension(const Extension* extension) |
+ const { |
+ return shell_window_->extension() == extension; |
+} |
+ |
} // namespace internal |
ShellWindow* ShellWindow::Create(Profile* profile, |