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

Unified Diff: ios/web/webui/url_data_manager_ios.cc

Issue 2945803002: Use ContainsValue() instead of std::find() in ios/ (Closed)
Patch Set: Fixed compilation error. 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: ios/web/webui/url_data_manager_ios.cc
diff --git a/ios/web/webui/url_data_manager_ios.cc b/ios/web/webui/url_data_manager_ios.cc
index 8cb9a5413cd983f298fe48e91ae914d3caffb47f..ec7599199e01ab0659ccbcffa60681cb2163de9c 100644
--- a/ios/web/webui/url_data_manager_ios.cc
+++ b/ios/web/webui/url_data_manager_ios.cc
@@ -13,6 +13,7 @@
#include "base/memory/ptr_util.h"
#include "base/memory/ref_counted_memory.h"
#include "base/message_loop/message_loop.h"
+#include "base/stl_util.h"
#include "base/strings/string_util.h"
#include "base/synchronization/lock.h"
#include "ios/web/public/browser_state.h"
@@ -129,8 +130,7 @@ bool URLDataManagerIOS::IsScheduledForDeletion(
base::AutoLock lock(g_delete_lock.Get());
if (!data_sources_)
return false;
- return std::find(data_sources_->begin(), data_sources_->end(), data_source) !=
- data_sources_->end();
+ return base::ContainsValue(*data_sources_, data_source);
}
} // namespace web
« no previous file with comments | « ios/chrome/browser/voice/speech_input_locale_config_impl.mm ('k') | ios/web/webui/url_data_manager_ios_backend.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698