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

Unified Diff: chrome/browser/autocomplete/shortcuts_provider.cc

Issue 22954004: autocomplete: Fix the use of std::remove_if() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/shortcuts_provider.cc
diff --git a/chrome/browser/autocomplete/shortcuts_provider.cc b/chrome/browser/autocomplete/shortcuts_provider.cc
index cf121be0bd3a49eefebb8635c947d4decd04ccb9..a1aa21caf968f7315bdeea73e52ca15a19bf4870 100644
--- a/chrome/browser/autocomplete/shortcuts_provider.cc
+++ b/chrome/browser/autocomplete/shortcuts_provider.cc
@@ -133,7 +133,10 @@ void ShortcutsProvider::OnShortcutsLoaded() {
}
void ShortcutsProvider::DeleteMatchesWithURLs(const std::set<GURL>& urls) {
- std::remove_if(matches_.begin(), matches_.end(), RemoveMatchPredicate(urls));
+ matches_.erase(
+ std::remove_if(
+ matches_.begin(), matches_.end(), RemoveMatchPredicate(urls)),
+ matches_.end());
listener_->OnProviderUpdate(true);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698