Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 9d779273048e3fb6ab6db8f2b9609ef930bd6c98..fbb6f76fea6db86797038dd1f8d06fa165954dfa 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -3364,6 +3364,14 @@ void Browser::WorkerCrashed() { |
l10n_util::GetStringUTF16(IDS_WEBWORKER_CRASHED_PROMPT), true)); |
} |
+bool Browser::IsHidden(const TabContents* source) const { |
+ TabContentsWrapper* wrapper = GetSelectedTabContentsWrapper(); |
+ if (wrapper) |
+ return wrapper->tab_contents() != source; |
+ // If we cant find the tab contents, assume we are not visible. |
+ return true; |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
// Browser, TabContentsWrapperDelegate implementation: |