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

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

Issue 10050016: Removes pinning code from TopSites as we no longer need it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove printfs 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/automation/testing_automation_provider.cc ('k') | 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 30e27de24a0a075b3d7b8e8765ef8aee4436b140..9288b311587b01348699c07953eafc5f69c93ee1 100644
--- a/chrome/browser/history/top_sites.h
+++ b/chrome/browser/history/top_sites.h
@@ -31,10 +31,6 @@
class FilePath;
class Profile;
-namespace base {
-class DictionaryValue;
-}
-
namespace history {
class TopSitesCache;
@@ -126,21 +122,6 @@ class TopSites
// Clear the blacklist.
void ClearBlacklistedURLs();
- // Pinned URLs
-
- // Pin a URL at |index|.
- void AddPinnedURL(const GURL& url, size_t index);
-
- // Returns true if a URL is pinned.
- bool IsURLPinned(const GURL& url);
-
- // Unpin a URL.
- void RemovePinnedURL(const GURL& url);
-
- // Return a URL pinned at |index| via |out|. Returns true if there
- // is a URL pinned at |index|.
- bool GetPinnedURLAtIndex(size_t index, GURL* out);
-
// Shuts down top sites.
void Shutdown();
@@ -267,14 +248,8 @@ class TopSites
// Returns true if any pages were added.
static bool AddPrepopulatedPages(MostVisitedURLList* urls);
- // Convert pinned_urls_ dictionary to the new format. Use URLs as
- // dictionary keys.
- void MigratePinnedURLs();
-
- // Takes |urls|, produces it's copy in |out| after removing
- // blacklisted URLs and reordering pinned URLs.
- void ApplyBlacklistAndPinnedURLs(const MostVisitedURLList& urls,
- MostVisitedURLList* out);
+ // Takes |urls|, produces it's copy in |out| after removing blacklisted URLs.
+ void ApplyBlacklist(const MostVisitedURLList& urls, MostVisitedURLList* out);
// Converts a url into a canonical string representation.
std::string GetURLString(const GURL& url);
@@ -374,11 +349,6 @@ class TopSites
// SetTopSites call.
TempImages temp_images_;
- // This is a dictionary for the pinned URLs for the the most visited part of
- // the new tab page. Key is the URL, value is index where it is pinned at (may
- // be the same as key). This is owned by the PrefService.
- const base::DictionaryValue* pinned_urls_;
-
// See description above HistoryLoadState.
HistoryLoadState history_state_;
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/history/top_sites.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698