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

Unified Diff: chrome/browser/history/top_sites.cc

Issue 10096015: 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/shortcuts_backend.cc ('k') | chrome/browser/sync/glue/typed_url_change_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites.cc
===================================================================
--- chrome/browser/history/top_sites.cc (revision 132411)
+++ chrome/browser/history/top_sites.cc (working copy)
@@ -682,10 +682,10 @@
backend_->ResetDatabase();
} else {
std::set<size_t> indices_to_delete; // Indices into top_sites_.
- for (std::set<GURL>::iterator i = deleted_details->urls.begin();
- i != deleted_details->urls.end(); ++i) {
- if (cache_->IsKnownURL(*i))
- indices_to_delete.insert(cache_->GetURLIndex(*i));
+ for (URLRows::const_iterator i = deleted_details->rows.begin();
+ i != deleted_details->rows.end(); ++i) {
+ if (cache_->IsKnownURL(i->url()))
+ indices_to_delete.insert(cache_->GetURLIndex(i->url()));
}
if (indices_to_delete.empty())
« no previous file with comments | « chrome/browser/history/shortcuts_backend.cc ('k') | chrome/browser/sync/glue/typed_url_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698