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

Unified Diff: chrome/browser/sxs_linux.cc

Issue 1715683002: chrome: Use base's ContainsValue helper function instead of std::find (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing non ContainsValue changes Created 4 years, 9 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/sxs_linux.cc
diff --git a/chrome/browser/sxs_linux.cc b/chrome/browser/sxs_linux.cc
index 57b2ef14116ce665d593b6a53df0f7ede8cf9948..ad529d1567ee67a987c79eb45d172048f69abf1c 100644
--- a/chrome/browser/sxs_linux.cc
+++ b/chrome/browser/sxs_linux.cc
@@ -12,6 +12,7 @@
#include "base/files/important_file_writer.h"
#include "base/logging.h"
#include "base/path_service.h"
+#include "base/stl_util.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "chrome/common/channel_info.h"
@@ -72,9 +73,7 @@ bool DoAddChannelMarkToUserDataDir(const base::FilePath& user_data_dir) {
base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
}
- if (std::find(user_data_dir_channels.begin(),
- user_data_dir_channels.end(),
- product_channel_name) != user_data_dir_channels.end()) {
+ if (ContainsValue(user_data_dir_channels, product_channel_name)) {
// No need to do further disk writes if our channel mark is already present.
return true;
}

Powered by Google App Engine
This is Rietveld 408576698