|
Componentize TopSites, TopSitesBackend, TopSitesDatabase
TopSites prepopulated pages are not injected by the embedder via the
TopSitesFactory. The method TopSites::GetPrepopulatedSites() now does return
the sites favicon, thumbnail and color in addition to the URL and title.
TopSitesImplTest now can inject prepopulated pages to the TopSitesImpl thus
enabling the test TopSitesImplTest.BlacklistingWithPrepopulated on Android.
Change TopSites so that it does not inherit from content::NotificationObserver
as it does not need to listen to notification and move the inheritance to
TopSitesImpl (until the code is changed to use observer pattern instead of
notifications).
Remove dependency of TopSitesBackend on content::BrowserThread by injecting a
base::SingleThreadedTaskRunner reference to the corresponding thread via the
TopSitesImpl::Init() method.
Introduce //components/test/data/history and move pristine SQL files used by
the different unit tests there, helping remove dependency of the unit tests
on //chrome.
Move top_sites.{cc,h}, top_sites_database.{cc,h} into
//components/history/core/browser.
BUG= 380144, 380157
TBR=sky, dgozman, samarth
Committed: https://crrev.com/0da3bc0e26f768834feca7a5e1c0c70f4c88e453
Cr-Commit-Position: refs/heads/master@{#313740}
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+627 lines, -2952 lines) |
Patch |
 |
M |
chrome/browser/android/dev_tools_manager_delegate_android.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/dev_tools_server.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/most_visited_sites.cc
|
View
|
1
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/android/provider/chrome_browser_provider.cc
|
View
|
1
2
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/autocomplete/zero_suggest_provider.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/autocomplete/zero_suggest_provider_unittest.cc
|
View
|
1
|
3 chunks |
+3 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/browser_list_tabcontents_provider.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/devtools/chrome_devtools_manager_delegate.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/top_sites/top_sites_api.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/extensions/api/top_sites/top_sites_apitest.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+14 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/expire_history_backend_unittest.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/history_unittest.cc
|
View
|
1
2
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
D |
chrome/browser/history/top_sites.h
|
View
|
1
2
|
1 chunk |
+0 lines, -194 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/history/top_sites.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -53 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/history/top_sites_backend.h
|
View
|
|
1 chunk |
+0 lines, -97 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/history/top_sites_backend.cc
|
View
|
|
1 chunk |
+0 lines, -140 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/history/top_sites_database.h
|
View
|
|
1 chunk |
+0 lines, -110 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/history/top_sites_database.cc
|
View
|
|
1 chunk |
+0 lines, -736 lines |
0 comments
|
Download
|
 |
D |
chrome/browser/history/top_sites_database_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -479 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_factory.h
|
View
|
1
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_factory.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+64 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_impl.h
|
View
|
1
2
3
|
5 chunks |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_impl.cc
|
View
|
1
2
|
7 chunks |
+19 lines, -29 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/history/top_sites_impl_unittest.cc
|
View
|
1
2
|
39 chunks |
+74 lines, -53 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/jumplist_win.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/precache/most_visited_urls_provider.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/search/instant_service.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/thumbnails/thumbnail_list_source.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/thumbnails/thumbnail_service_impl.h
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/thumbnails/thumbnail_service_unittest.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser.cc
|
View
|
1
2
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/search/instant_extended_interactive_uitest.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/tabs/tab_strip_model_utils.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/frame/global_menu_bar_x11.cc
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/favicon_source.cc
|
View
|
1
2
|
3 chunks |
+15 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/favicon_webui_handler.cc
|
View
|
1
|
2 chunks |
+15 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/most_visited_handler.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/suggestions_page_handler.cc
|
View
|
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/webui/ntp/suggestions_source_top_sites.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_tests_unit.gypi
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/test/base/testing_profile.cc
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/History/TopSites.v1.sql
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/History/TopSites.v2.sql
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
D |
chrome/test/data/History/TopSites.v3.sql
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
D |
chrome/tools/profiles/thumbnail-inl.h
|
View
|
|
1 chunk |
+0 lines, -813 lines |
0 comments
|
Download
|
 |
M |
components/components_tests.gyp
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/history.gypi
|
View
|
1
|
3 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/history/DEPS
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/history/core/browser/BUILD.gn
|
View
|
1
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/history/core/browser/top_sites.h
|
View
|
1
2
|
8 chunks |
+31 lines, -37 lines |
0 comments
|
Download
|
 |
A + |
components/history/core/browser/top_sites.cc
|
View
|
1
2
|
1 chunk |
+16 lines, -20 lines |
0 comments
|
Download
|
 |
A + |
components/history/core/browser/top_sites_backend.h
|
View
|
1
|
5 chunks |
+8 lines, -5 lines |
0 comments
|
Download
|
 |
A + |
components/history/core/browser/top_sites_backend.cc
|
View
|
1
|
4 chunks |
+27 lines, -35 lines |
0 comments
|
Download
|
 |
A + |
components/history/core/browser/top_sites_database.h
|
View
|
1
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
A + |
components/history/core/browser/top_sites_database.cc
|
View
|
1
|
8 chunks |
+12 lines, -16 lines |
0 comments
|
Download
|
 |
A + |
components/history/core/browser/top_sites_database_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -15 lines |
0 comments
|
Download
|
 |
M |
components/history/core/test/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/history/core/test/database_test_utils.h
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/history/core/test/database_test_utils.cc
|
View
|
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
 |
A |
components/history/core/test/thumbnail-inl.h
|
View
|
|
1 chunk |
+194 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/test/data/history/OWNERS
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
components/test/data/history/TopSites.v1.sql
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
components/test/data/history/TopSites.v2.sql
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
components/test/data/history/TopSites.v3.sql
|
View
|
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
Total messages: 25 (7 generated)
|