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

Issue 2738063007: Removes unnecessary calls to FocusManager (Closed)

Created:
3 years, 9 months ago by sky
Modified:
3 years, 9 months ago
Reviewers:
msw
CC:
chromium-reviews, kalyank, sadrul, Matt Giuca, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Removes unnecessary calls to FocusManager In general View::RequestFocus() and FocusManager::SetFocusedView() do the same thing. The only exception to that is the SetFocusedView() does not check if the view wants focus, where as View::RequestFocus() does. For the cases I'm changing here RequestFocus() is fine. BUG=none TEST=none R=msw@chromium.org Review-Url: https://codereview.chromium.org/2738063007 Cr-Commit-Position: refs/heads/master@{#456118} Committed: https://chromium.googlesource.com/chromium/src/+/5299daa07febf8a3822227397e1b24f0596d7cee

Patch Set 1 #

Total comments: 4

Patch Set 2 : comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -27 lines) Patch
M ash/magnifier/magnification_controller_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/desktop_capture/desktop_media_list_view.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/first_run_bubble_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/task_manager_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/task_manager_view.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M ui/app_list/views/folder_header_view.cc View 2 chunks +1 line, -6 lines 0 comments Download
M ui/views/controls/webview/webview.cc View 1 3 chunks +5 lines, -10 lines 0 comments Download

Messages

Total messages: 13 (8 generated)
sky
https://codereview.chromium.org/2738063007/diff/1/ui/app_list/views/folder_header_view.cc File ui/app_list/views/folder_header_view.cc (right): https://codereview.chromium.org/2738063007/diff/1/ui/app_list/views/folder_header_view.cc#newcode98 ui/app_list/views/folder_header_view.cc:98: folder_name_view_->RequestFocus(); There's no need to check if the view ...
3 years, 9 months ago (2017-03-10 15:45:03 UTC) #1
msw
lgtm with a nit https://codereview.chromium.org/2738063007/diff/1/ui/app_list/views/folder_header_view.cc File ui/app_list/views/folder_header_view.cc (right): https://codereview.chromium.org/2738063007/diff/1/ui/app_list/views/folder_header_view.cc#newcode98 ui/app_list/views/folder_header_view.cc:98: folder_name_view_->RequestFocus(); On 2017/03/10 15:45:03, sky ...
3 years, 9 months ago (2017-03-10 17:47:08 UTC) #6
sky
https://codereview.chromium.org/2738063007/diff/1/ui/views/controls/webview/webview.cc File ui/views/controls/webview/webview.cc (right): https://codereview.chromium.org/2738063007/diff/1/ui/views/controls/webview/webview.cc#newcode334 ui/views/controls/webview/webview.cc:334: // we need to pass on focus to if ...
3 years, 9 months ago (2017-03-10 18:06:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2738063007/20001
3 years, 9 months ago (2017-03-10 18:06:13 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 18:55:10 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/5299daa07febf8a3822227397e1b...

Powered by Google App Engine
This is Rietveld 408576698