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

Unified Diff: ash/magnifier/magnification_controller_unittest.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 | « no previous file | chrome/browser/ui/views/desktop_capture/desktop_media_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/magnifier/magnification_controller_unittest.cc
diff --git a/ash/magnifier/magnification_controller_unittest.cc b/ash/magnifier/magnification_controller_unittest.cc
index f765700ed4f010f6a3d30bc9442fd4071e86b96b..1dacc279367ca423b0ea0679d5fba1a82da9a742 100644
--- a/ash/magnifier/magnification_controller_unittest.cc
+++ b/ash/magnifier/magnification_controller_unittest.cc
@@ -45,8 +45,7 @@ class TextInputView : public views::WidgetDelegateView {
return gfx::Size(kTextInputWindowWidth, kTextInputWindowHeight);
}
- // Overridden from views::WidgetDelegate:
- void FocusOnTextInput() { GetFocusManager()->SetFocusedView(text_field_); }
+ void FocusOnTextInput() { text_field_->RequestFocus(); }
private:
views::Textfield* text_field_; // owned by views hierarchy
« no previous file with comments | « no previous file | chrome/browser/ui/views/desktop_capture/desktop_media_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698