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

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_container_aura.cc

Issue 8659014: Check that we have a focus manager in aura before trying to set focus. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview_ui_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tab_contents/native_tab_contents_container_aura.cc
diff --git a/chrome/browser/ui/views/tab_contents/native_tab_contents_container_aura.cc b/chrome/browser/ui/views/tab_contents/native_tab_contents_container_aura.cc
index 97c126553ed4f68f2bee38ebdd0a8f89cc1a479d..7306e5909896c1ef46574c580f0fcfc50525d04f 100644
--- a/chrome/browser/ui/views/tab_contents/native_tab_contents_container_aura.cc
+++ b/chrome/browser/ui/views/tab_contents/native_tab_contents_container_aura.cc
@@ -113,7 +113,7 @@ void NativeTabContentsContainerAura::RequestFocus() {
// that should also have focus, RequestFocus() is invoked one the
// TabContentsContainer. In order to make sure OnFocus() is invoked we need
// to clear the focus before hands.
- {
+ if (GetFocusManager()) {
sky 2011/11/28 23:36:08 This seems fine, but I wonder why we don't have it
// Disable notifications. Clear focus will assign the focus to the main
// browser window. Because this change of focus was not user requested,
// don't send it to listeners.
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview_ui_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698