Index: chrome/browser/ui/views/ash/chrome_shell_delegate.cc |
diff --git a/chrome/browser/ui/views/ash/chrome_shell_delegate.cc b/chrome/browser/ui/views/ash/chrome_shell_delegate.cc |
index 368d7981a135db1b5955f0d4b5efdc1996df9cc1..39f43b541c14efba6d1c08c9f6e7296ee65f220e 100644 |
--- a/chrome/browser/ui/views/ash/chrome_shell_delegate.cc |
+++ b/chrome/browser/ui/views/ash/chrome_shell_delegate.cc |
@@ -115,6 +115,19 @@ void ChromeShellDelegate::NewWindow(bool is_incognito) { |
is_incognito ? profile->GetOffTheRecordProfile() : profile); |
} |
+bool ChromeShellDelegate::IsBrowserWindow(const aura::Window* window) { |
+ for (BrowserList::const_iterator iter = BrowserList::begin(); |
+ iter != BrowserList::end(); |
+ ++iter) { |
+ Browser* browser = *iter; |
+ if (browser && browser->window() && |
+ browser->window()->GetNativeHandle() == window) { |
+ return true; |
+ } |
+ } |
+ return false; |
+} |
+ |
void ChromeShellDelegate::Search() { |
// Exit fullscreen to show omnibox. |
Browser* last_active = BrowserList::GetLastActive(); |