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

Unified Diff: chrome/browser/browsing_data/browsing_data_helper.cc

Issue 2950803002: Use ContainsValue() instead of std::find() in chrome/browser/ and chrome/test/ (Closed)
Patch Set: Reverted code for file thumbnail_cache.cc 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: chrome/browser/browsing_data/browsing_data_helper.cc
diff --git a/chrome/browser/browsing_data/browsing_data_helper.cc b/chrome/browser/browsing_data/browsing_data_helper.cc
index 3240b04673b279e3fba5707d2c95668f8031d80c..c7c2eca8d142e585ae4f7100741631ec74952ccf 100644
--- a/chrome/browser/browsing_data/browsing_data_helper.cc
+++ b/chrome/browser/browsing_data/browsing_data_helper.cc
@@ -4,9 +4,9 @@
#include "chrome/browser/browsing_data/browsing_data_helper.h"
-#include <algorithm>
#include <vector>
+#include "base/stl_util.h"
#include "base/strings/utf_string_conversions.h"
#include "extensions/common/constants.h"
#include "url/gurl.h"
@@ -15,7 +15,7 @@
// Static
bool BrowsingDataHelper::IsWebScheme(const std::string& scheme) {
const std::vector<std::string>& schemes = url::GetWebStorageSchemes();
- return std::find(schemes.begin(), schemes.end(), scheme) != schemes.end();
+ return base::ContainsValue(schemes, scheme);
}
// Static

Powered by Google App Engine
This is Rietveld 408576698