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

Unified Diff: chrome/browser/sync/glue/typed_url_change_processor.cc

Issue 10031028: Single URL Expires Were Not Being Deleted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/sync/profile_sync_service_typed_url_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/typed_url_change_processor.cc
===================================================================
--- chrome/browser/sync/glue/typed_url_change_processor.cc (revision 132078)
+++ chrome/browser/sync/glue/typed_url_change_processor.cc (working copy)
@@ -151,12 +151,13 @@
return;
}
} else {
- for (std::set<GURL>::iterator url = details->urls.begin();
- url != details->urls.end(); ++url) {
+ for (history::URLRows::const_iterator row = details->rows.begin();
+ row != details->rows.end(); ++row) {
sync_api::WriteNode sync_node(&trans);
// The deleted URL could have been non-typed, so it might not be found
// in the sync DB.
- if (sync_node.InitByClientTagLookup(syncable::TYPED_URLS, url->spec()))
+ if (sync_node.InitByClientTagLookup(syncable::TYPED_URLS,
+ row->url().spec()))
sync_node.Remove();
}
}
« no previous file with comments | « chrome/browser/history/top_sites.cc ('k') | chrome/browser/sync/profile_sync_service_typed_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698