Move TopSites preferences registration to history component
commita8c9a83d344945e82e7377ff68987ca3f7f98a96
authorsdefresne <sdefresne@chromium.org>
Mon, 22 Jun 2015 08:41:15 +0000 (22 01:41 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Jun 2015 08:41:41 +0000 (22 08:41 +0000)
tree826755c7a1fd8b1e8a8d1d4b1aa27138d07e2378
parent9fb5ecf62351a235b723c15c65343c895e8e7640
Move TopSites preferences registration to history component

Move the registration of the TopSites preferences from TopSitesFactory
to TopSitesImpl so that it can be shared with iOS.

Move kNtpMostVisitedURLsBlacklist preference definition to the history
component as it is the sole client of that constant and rename it (but
do not change its value so that the user preference is not lost).

Change TopSitesImpl to use the constant kMostVisitedURLsBlacklist instead
of a variable passed via the constructor to access the preference.

BUG=479174
TBR=jochen

Review URL: https://codereview.chromium.org/1192403002

Cr-Commit-Position: refs/heads/master@{#335478}
chrome/browser/history/top_sites_factory.cc
chrome/browser/thumbnails/thumbnail_service_unittest.cc
chrome/common/pref_names.cc
chrome/common/pref_names.h
components/history/core/browser/expire_history_backend_unittest.cc
components/history/core/browser/top_sites_impl.cc
components/history/core/browser/top_sites_impl.h
components/history/core/browser/top_sites_impl_unittest.cc