Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 108063004: Give up focus if the focused view becomes unfocusable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extracted to common code into FocusManager class Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 614912143d273fc68672fa3752c4b488d8c4dad5..000f95573e181defa6e544a08f8322ef58c025bb 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1819,7 +1819,7 @@ void BrowserView::Layout() {
views::View::Layout();
// TODO(jamescook): Why was this in the middle of layout code?
- toolbar_->location_bar()->omnibox_view()->set_focusable(IsToolbarVisible());
+ toolbar_->location_bar()->omnibox_view()->SetFocusable(IsToolbarVisible());
// The status bubble position requires that all other layout finish first.
LayoutStatusBubble();

Powered by Google App Engine
This is Rietveld 408576698