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 5bf0eec18fa0e83f7a94661b839aa5be2c602621..9548c56526911d6c5e0b6f207ddb4d2ad6691722 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); |
} |