Chromium Code Reviews| Index: chromecast/graphics/cast_focus_client_aura.cc |
| diff --git a/chromecast/graphics/cast_focus_client_aura.cc b/chromecast/graphics/cast_focus_client_aura.cc |
| index 50881616ebcfa88e20ac2c05d9fd01425b3402ee..4bde7d9e9983b141af071b3cae135ca068b0da36 100644 |
| --- a/chromecast/graphics/cast_focus_client_aura.cc |
| +++ b/chromecast/graphics/cast_focus_client_aura.cc |
| @@ -3,6 +3,7 @@ |
| // found in the LICENSE file. |
| #include "chromecast/graphics/cast_focus_client_aura.h" |
| +#include "base/stl_util.h" |
|
alokp
2017/06/02 04:59:35
add a line here.
Tripta
2017/06/02 08:08:02
Have made the changes. Please check.
|
|
alokp
2017/06/02 04:59:35
remove this line
Tripta
2017/06/02 08:08:02
Have made the changes. Please check.
|
| #include "ui/aura/window.h" |
| @@ -124,9 +125,7 @@ void CastFocusClientAura::FocusWindow(aura::Window* window) { |
| aura::Window* top_level = GetZOrderWindow(window); |
| DCHECK(top_level); |
| DLOG(INFO) << "Requesting focus for " << LOG_WINDOW_INFO(top_level, window); |
| - auto iter = |
| - std::find(focusable_windows_.begin(), focusable_windows_.end(), window); |
| - if (iter == focusable_windows_.end()) { |
| + if(!base::ContainsValue(focusable_windows_, window)) { |
| // We're not yet tracking this focusable window, so start tracking it as a |
| // potential focus target. |
| window->AddObserver(this); |