|
Move BrowsingDataRemover to content/
Changes in this CL:
1. The public interfaces BrowsingDataRemover and BrowsingDataRemoverDelegate
move to content/public/browser. BrowsingDataRemoverImpl moves to
content/browser/browsing_data.
2. Previously, BrowsingDataRemoverImpl was a KeyedService created by
BrowsingDataRemoverFactory. After this CL, it is owned by BrowserContext.
Conversely, ChromeBrowsingRemoverDelegate (which stays in chrome/) becomes
a KeyedService. The former BrowsingDataRemoverFactory is thus adapted into
ChromeBrowsingDataRemoverDelegateFactory.
BrowsingDataRemoverDelegate is now owned by the embedder (rather than
BrowsingDataRemover) and supplied by embedders through
BrowserContext::GetBrowsingDataRemoverDelegate(). Profile (in chrome/)
supplies ChromeBrowsingDataRemoverDelegate. The implementation for other
embedders is left as TODO.
3. BrowsingDataRemoverImplTest moves to content/browser/browsing/data.
browsing_data_remover_test_util that is used by this test as well as various
tests in chrome/ is moved to content/public/test.
4. BrowsingDataRemover can only delete download history if this is feature is
not disabled by administrator. Previously, BrowsingDataRemover queried
PrefService directly. We now pass this information through
BrowsingDataRemoverDelegate. The default value is true,
ChromeBrowsingDataRemoverDelegate queries PrefService.
5. The removal of ContentBrowserClient interfaces ClearCookies(), ClearCache(),
ClearSiteData() and their replacement by BrowsingDataRemover is left as a TODO.
6. All other changes are adding / removing includes, updating BUILD files,
replacing BrowsingDataRemoverFactory with BrowserContext::GetBrowsingDataRemover,
formatting (mostly triggered by prepending content:: to class names), and the
removal of forgotten "#ifdef (EXTENSIONS)" in BrowsingDataRemoverImplTest.
TBR=dbeam@chromium.org
BUG= 668114
Review-Url: https://codereview.chromium.org/2827523003
Cr-Commit-Position: refs/heads/master@{#467241}
Committed: https://chromium.googlesource.com/chromium/src/+/e169ccbe5d1f406337c2b5e758f58b7966c51b6c
Total comments: 7
Total comments: 4
Total comments: 22
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+852 lines, -3958 lines) |
Patch |
|
M |
chrome/browser/BUILD.gn
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/android/browsing_data/browsing_data_bridge.cc
|
View
|
|
4 chunks |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/android/signin/signin_manager_android.cc
|
View
|
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover.h
|
View
|
|
1 chunk |
+0 lines, -203 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/browsing_data_remover_browsertest.cc
|
View
|
1
2
3
4
5
|
8 chunks |
+20 lines, -19 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover_delegate.h
|
View
|
|
1 chunk |
+0 lines, -52 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover_factory.h
|
View
|
|
1 chunk |
+0 lines, -41 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover_factory.cc
|
View
|
|
1 chunk |
+0 lines, -101 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover_impl.h
|
View
|
|
1 chunk |
+0 lines, -243 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover_impl.cc
|
View
|
1
2
3
4
5
|
1 chunk |
+0 lines, -681 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover_impl_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+0 lines, -1715 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover_test_util.h
|
View
|
|
1 chunk |
+0 lines, -67 lines |
0 comments
|
Download
|
|
D |
chrome/browser/browsing_data/browsing_data_remover_test_util.cc
|
View
|
|
1 chunk |
+0 lines, -64 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h
|
View
|
1
2
3
4
|
5 chunks |
+50 lines, -37 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
|
View
|
1
2
3
4
5
|
12 chunks |
+36 lines, -24 lines |
0 comments
|
Download
|
|
A |
chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_factory.h
|
View
|
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
A + |
chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_factory.cc
|
View
|
|
4 chunks |
+17 lines, -17 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/chrome_browsing_data_remover_delegate_unittest.cc
|
View
|
1
2
3
4
5
6
|
36 chunks |
+87 lines, -63 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/mock_browsing_data_remover_delegate.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/browsing_data/mock_browsing_data_remover_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chrome_content_browser_client.cc
|
View
|
1
2
3
4
5
6
|
8 chunks |
+15 lines, -17 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chrome_content_browser_client_unittest.cc
|
View
|
1
2
3
|
8 chunks |
+26 lines, -30 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/profiles/profile_helper.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/chromeos/profiles/profile_helper.cc
|
View
|
|
4 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/browsing_data/browsing_data_api.h
|
View
|
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/browsing_data/browsing_data_api.cc
|
View
|
1
2
3
4
5
|
11 chunks |
+30 lines, -30 lines |
0 comments
|
Download
|
|
M |
chrome/browser/extensions/api/browsing_data/browsing_data_test.cc
|
View
|
|
16 chunks |
+62 lines, -59 lines |
0 comments
|
Download
|
|
M |
chrome/browser/net/errorpage_browsertest.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
chrome/browser/net/predictor_browsertest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/net/sdch_browsertest.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+14 lines, -15 lines |
0 comments
|
Download
|
|
M |
chrome/browser/predictors/resource_prefetch_predictor_browsertest.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+11 lines, -9 lines |
0 comments
|
Download
|
|
M |
chrome/browser/prerender/prerender_browsertest.cc
|
View
|
1
2
3
4
5
|
5 chunks |
+11 lines, -10 lines |
0 comments
|
Download
|
|
M |
chrome/browser/profile_resetter/profile_resetter.h
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/profile_resetter/profile_resetter.cc
|
View
|
|
4 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/profiles/profile_impl.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/profiles/profile_impl.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
chrome/browser/profiles/profile_manager_browsertest.cc
|
View
|
|
3 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/profiles/profiles_state.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/push_messaging/push_messaging_browsertest.cc
|
View
|
|
3 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc
|
View
|
|
3 chunks |
+8 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/browser_commands.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/net_internals/net_internals_ui.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/options/clear_browser_data_browsertest.cc
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/options/clear_browser_data_handler.h
|
View
|
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/options/clear_browser_data_handler.cc
|
View
|
|
4 chunks |
+14 lines, -15 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/profile_helper_browsertest.cc
|
View
|
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
|
View
|
|
5 chunks |
+21 lines, -20 lines |
0 comments
|
Download
|
|
M |
chrome/test/BUILD.gn
|
View
|
1
2
3
4
5
6
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/browser/BUILD.gn
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/browser/browser_context.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
|
A + |
content/browser/browsing_data/browsing_data_remover_impl.h
|
View
|
1
2
3
|
8 chunks |
+36 lines, -42 lines |
0 comments
|
Download
|
|
A + |
content/browser/browsing_data/browsing_data_remover_impl.cc
|
View
|
1
2
3
4
5
|
19 chunks |
+52 lines, -86 lines |
0 comments
|
Download
|
|
A + |
content/browser/browsing_data/browsing_data_remover_impl_unittest.cc
|
View
|
1
2
3
4
5
6
|
43 chunks |
+86 lines, -144 lines |
0 comments
|
Download
|
|
M |
content/public/browser/BUILD.gn
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
content/public/browser/browser_context.h
|
View
|
1
2
3
4
5
6
|
4 chunks |
+16 lines, -5 lines |
0 comments
|
Download
|
|
A + |
content/public/browser/browsing_data_remover.h
|
View
|
1
2
3
|
8 chunks |
+22 lines, -16 lines |
0 comments
|
Download
|
|
A + |
content/public/browser/browsing_data_remover_delegate.h
|
View
|
1
2
3
4
|
3 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
|
M |
content/public/browser/content_browser_client.h
|
View
|
1
2
3
4
5
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A + |
content/public/test/browsing_data_remover_test_util.h
|
View
|
|
3 chunks |
+9 lines, -5 lines |
0 comments
|
Download
|
|
A + |
content/public/test/browsing_data_remover_test_util.cc
|
View
|
|
3 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/public/test/cache_test_util.h
|
View
|
|
5 chunks |
+7 lines, -7 lines |
0 comments
|
Download
|
|
M |
content/test/BUILD.gn
|
View
|
1
2
3
4
5
6
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 95 (77 generated)
|