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

Unified Diff: chrome/browser/search_engines/search_provider_install_data.cc

Issue 1782963002: Remove std::mem_fun uses. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/search_engines/search_provider_install_data.cc
diff --git a/chrome/browser/search_engines/search_provider_install_data.cc b/chrome/browser/search_engines/search_provider_install_data.cc
index dcf0d7c173566495b26fd9ce34fb888ffd316254..78bd1c4b092fa883b081bef24ac7b798704ff8ce 100644
--- a/chrome/browser/search_engines/search_provider_install_data.cc
+++ b/chrome/browser/search_engines/search_provider_install_data.cc
@@ -306,9 +306,8 @@ void SearchProviderInstallData::NotifyLoaded() {
std::vector<base::Closure> closure_queue;
closure_queue.swap(closure_queue_);
- std::for_each(closure_queue.begin(),
- closure_queue.end(),
- std::mem_fun_ref(&base::Closure::Run));
+ for (auto& closure : closure_queue)
+ closure.Run();
// Since we expect this request to be rare, clear out the information. This
// also keeps the responses current as the search providers change.

Powered by Google App Engine
This is Rietveld 408576698