| Index: ui/base/ime/win/tsf_input_scope.cc
|
| diff --git a/ui/base/ime/win/tsf_input_scope.cc b/ui/base/ime/win/tsf_input_scope.cc
|
| index a1ba89a6c23dbba19805619bbf57fd3b921c8c1d..a0488e7524a1833818027475b914d81312ac6d7b 100644
|
| --- a/ui/base/ime/win/tsf_input_scope.cc
|
| +++ b/ui/base/ime/win/tsf_input_scope.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/logging.h"
|
| #include "base/message_loop/message_loop.h"
|
| +#include "base/stl_util.h"
|
| #include "base/win/windows_version.h"
|
|
|
| namespace ui {
|
| @@ -22,8 +23,7 @@ void AppendNonTrivialInputScope(std::vector<InputScope>* input_scopes,
|
| if (input_scope == IS_DEFAULT)
|
| return;
|
|
|
| - if (std::find(input_scopes->begin(), input_scopes->end(), input_scope) !=
|
| - input_scopes->end())
|
| + if (ContainsValue(*input_scopes, input_scope))
|
| return;
|
|
|
| input_scopes->push_back(input_scope);
|
|
|