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

Unified Diff: components/search_engines/util.cc

Issue 1440593004: Make operators on scoped_ptr match the ones defined for std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrequals: followupfix-after-rebase Created 5 years, 1 month 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: components/search_engines/util.cc
diff --git a/components/search_engines/util.cc b/components/search_engines/util.cc
index 2e16a9c65f8783a261bf04d37bc7ba4aea2fd7aa..01c95974ec6cef196b8bf4ffc54dabfdf43564bc 100644
--- a/components/search_engines/util.cc
+++ b/components/search_engines/util.cc
@@ -202,8 +202,8 @@ void MergeEnginesFromPrepopulateData(
for (std::vector<TemplateURL*>::iterator i = actions.removed_engines.begin();
i < actions.removed_engines.end(); ++i) {
scoped_ptr<TemplateURL> template_url(*i);
- TemplateURLService::TemplateURLVector::iterator j =
- std::find(template_urls->begin(), template_urls->end(), template_url);
+ TemplateURLService::TemplateURLVector::iterator j = std::find(
+ template_urls->begin(), template_urls->end(), template_url.get());
DCHECK(j != template_urls->end());
DCHECK(!default_search_provider ||
(*j)->prepopulate_id() != default_search_provider->prepopulate_id());
« no previous file with comments | « components/invalidation/impl/ticl_invalidation_service.cc ('k') | components/sync_driver/profile_sync_auth_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698