Index: chrome/browser/chromeos/login/screens/controller_pairing_screen.cc |
diff --git a/chrome/browser/chromeos/login/screens/controller_pairing_screen.cc b/chrome/browser/chromeos/login/screens/controller_pairing_screen.cc |
index 02504a6b6e96cea7d47c1e15367cbc7da3805a01..f721596d198a0e029e7076a13a3812f63489de10 100644 |
--- a/chrome/browser/chromeos/login/screens/controller_pairing_screen.cc |
+++ b/chrome/browser/chromeos/login/screens/controller_pairing_screen.cc |
@@ -5,6 +5,7 @@ |
#include "chrome/browser/chromeos/login/screens/controller_pairing_screen.h" |
#include "base/command_line.h" |
+#include "base/stl_util.h" |
#include "base/values.h" |
#include "chrome/browser/chromeos/login/wizard_controller.h" |
#include "google_apis/gaia/gaia_auth_util.h" |
@@ -152,8 +153,7 @@ void ControllerPairingScreen::DiscoveredDevicesListChanged() { |
kContextKeyPage, |
devices.empty() ? kPageDevicesDiscovery : kPageDeviceSelect); |
std::string selected_device = context_.GetString(kContextKeySelectedDevice); |
- if (std::find(devices.begin(), devices.end(), selected_device) == |
- devices.end()) { |
+ if (!ContainsValue(devices, selected_device)) { |
sky
2016/03/02 17:19:34
nit: no {}
chakshu
2016/03/07 08:10:46
Done.
|
selected_device.clear(); |
} |
if (devices.empty()) { |