| 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..4a75da0fe936ce330ae447b0d79f42ba0b4a5007 100644
|
| --- a/ui/base/ime/win/tsf_input_scope.cc
|
| +++ b/ui/base/ime/win/tsf_input_scope.cc
|
| @@ -4,11 +4,10 @@
|
|
|
| #include "ui/base/ime/win/tsf_input_scope.h"
|
|
|
| -#include <algorithm>
|
| -
|
| #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 +21,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);
|
|
|