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

Unified Diff: ui/app_list/views/folder_header_view.cc

Issue 2738063007: Removes unnecessary calls to FocusManager (Closed)
Patch Set: comment Created 3 years, 9 months 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 | « chrome/browser/ui/views/task_manager_view.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/folder_header_view.cc
diff --git a/ui/app_list/views/folder_header_view.cc b/ui/app_list/views/folder_header_view.cc
index c1488249d2bc17a2815937ac989d3e0b445ecf74..4ce264181a4a4fdd5f5eaeb34b7eb8fe9fc71f54 100644
--- a/ui/app_list/views/folder_header_view.cc
+++ b/ui/app_list/views/folder_header_view.cc
@@ -19,7 +19,6 @@
#include "ui/views/border.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/controls/textfield/textfield.h"
-#include "ui/views/focus/focus_manager.h"
#include "ui/views/painter.h"
namespace app_list {
@@ -96,11 +95,7 @@ void FolderHeaderView::OnFolderItemRemoved() {
}
void FolderHeaderView::SetTextFocus() {
- if (!folder_name_view_->HasFocus()) {
- views::FocusManager* focus_manager = GetFocusManager();
- if (focus_manager)
- focus_manager->SetFocusedView(folder_name_view_);
- }
+ folder_name_view_->RequestFocus();
}
bool FolderHeaderView::HasTextFocus() const {
« no previous file with comments | « chrome/browser/ui/views/task_manager_view.cc ('k') | ui/views/controls/webview/webview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698