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

Unified Diff: extensions/common/extension_l10n_util.cc

Issue 2950263003: Use ContainsValue() instead of std::find() in extensions/ (Closed)
Patch Set: Rebase patch. Created 3 years, 6 months 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
Index: extensions/common/extension_l10n_util.cc
diff --git a/extensions/common/extension_l10n_util.cc b/extensions/common/extension_l10n_util.cc
index ac0ac6415a194e218b78f11bbe160d9aba382f4f..1255725ac47beac5900aa9881e0d77030c369001 100644
--- a/extensions/common/extension_l10n_util.cc
+++ b/extensions/common/extension_l10n_util.cc
@@ -6,7 +6,6 @@
#include <stddef.h>
-#include <algorithm>
#include <set>
#include <string>
#include <vector>
@@ -16,6 +15,7 @@
#include "base/json/json_file_value_serializer.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
+#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
@@ -444,7 +444,7 @@ bool ShouldSkipValidation(const base::FilePath& locales_path,
if (subdir.empty())
return true; // Non-ASCII.
- if (std::find(subdir.begin(), subdir.end(), '.') != subdir.end())
+ if (base::ContainsValue(subdir, '.'))
return true;
if (all_locales.find(subdir) == all_locales.end())
« no previous file with comments | « extensions/browser/app_window/app_window_registry.cc ('k') | extensions/common/permissions/permissions_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698