summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/infobars/infobars.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/views/infobars/infobars.cc')
-rw-r--r--chrome/browser/views/infobars/infobars.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/views/infobars/infobars.cc b/chrome/browser/views/infobars/infobars.cc
index 8bcf7e6..12fe42e 100644
--- a/chrome/browser/views/infobars/infobars.cc
+++ b/chrome/browser/views/infobars/infobars.cc
@@ -201,6 +201,7 @@ void InfoBar::AnimationEnded(const Animation* animation) {
void InfoBar::InfoBarAdded() {
// The container_ pointer must be set before adding to the view hierarchy.
DCHECK(container_);
+#if defined(OS_WIN)
// When we're added to a view hierarchy within a widget, we create an
// external focus tracker to track what was focused in case we obtain
// focus so that we can restore focus when we're removed.
@@ -210,6 +211,7 @@ void InfoBar::InfoBarAdded() {
new views::ExternalFocusTracker(this,
views::FocusManager::GetFocusManager(widget->GetNativeView())));
}
+#endif
}
void InfoBar::InfoBarRemoved() {