Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: ui/base/ime/win/tsf_input_scope.cc

Issue 1485093003: ui: use base's ContainsValue helper function instead of std::find (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review + view.cc fix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/base/win/hwnd_subclass.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | ui/base/win/hwnd_subclass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698