Index: chrome/browser/ui/views/frame/browser_view.cc |
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc |
index edb16a6f5c65835fe4f494d1313dcb8ff9525ff6..df3058de5e7fb20e2eab789c152996b1baf83e94 100644 |
--- a/chrome/browser/ui/views/frame/browser_view.cc |
+++ b/chrome/browser/ui/views/frame/browser_view.cc |
@@ -2116,11 +2116,13 @@ void BrowserView::ProcessFullscreen(bool fullscreen, |
static_cast<OmniboxViewWin*>(location_bar->GetLocationEntry()); |
#endif |
- if (!fullscreen && type != FOR_METRO) { |
+ if (type == FOR_METRO || !fullscreen) { |
// Hide the fullscreen bubble as soon as possible, since the mode toggle can |
// take enough time for the user to notice. |
fullscreen_bubble_.reset(); |
- } else { |
+ } |
+ |
+ if (fullscreen) { |
// Move focus out of the location bar if necessary. |
views::FocusManager* focus_manager = GetFocusManager(); |
DCHECK(focus_manager); |