Index: chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
diff --git a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
index c25df9741018cf2b0f77917c669488840599d74a..df9a88ad1df619166bff281421cac115d2fe2c63 100644 |
--- a/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
+++ b/chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc |
@@ -9,6 +9,7 @@ |
#include "base/guid.h" |
#include "base/logging.h" |
#include "base/metrics/histogram.h" |
+#include "base/stl_util.h" |
#include "base/strings/utf_string_conversions.h" |
#include "base/values.h" |
#include "chrome/browser/browser_process.h" |
@@ -125,8 +126,7 @@ void PushFrontIMIfNotExists(const std::string& input_method, |
if (input_method.empty()) |
return; |
- if (std::find(input_methods->begin(), input_methods->end(), input_method) == |
- input_methods->end()) |
+ if (!ContainsValue(*input_methods, input_method)) |
input_methods->insert(input_methods->begin(), input_method); |
} |