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

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

Issue 2832091: Unpin deleted URLs + better deleting algorithm. (Closed)
Patch Set: After review. Created 10 years, 5 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 | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/top_sites.h
diff --git a/chrome/browser/history/top_sites.h b/chrome/browser/history/top_sites.h
index 99d20ce98b51a89761ebd06ec25dc06a12638598..09d0af06810d3a0828c4643514428a0ad008b141 100644
--- a/chrome/browser/history/top_sites.h
+++ b/chrome/browser/history/top_sites.h
@@ -142,6 +142,7 @@ class TopSites : public NotificationObserver,
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, RealDatabase);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, MockDatabase);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, DeleteNotifications);
+ FRIEND_TEST_ALL_PREFIXES(TopSitesTest, PinnedURLsDeleted);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, GetUpdateDelay);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, Migration);
FRIEND_TEST_ALL_PREFIXES(TopSitesTest, QueueingRequestsForTopSites);
@@ -183,6 +184,9 @@ class TopSites : public NotificationObserver,
void OnThumbnailAvailable(CancelableRequestProvider::Handle handle,
scoped_refptr<RefCountedBytes> thumbnail);
+ // Sets canonical_urls_ from top_sites_.
+ void GenerateCanonicalURLs();
+
// Saves the set of the top URLs visited by this user. The 0th item is the
// most popular.
// DANGER! This will clear all data from the input argument.
« no previous file with comments | « no previous file | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698