OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" | 5 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
53 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h" | 53 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h" |
54 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h" | 54 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h" |
55 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" | 55 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" |
56 #include "components/domain_reliability/service.h" | 56 #include "components/domain_reliability/service.h" |
57 #include "components/history/core/browser/history_service.h" | 57 #include "components/history/core/browser/history_service.h" |
58 #include "components/nacl/browser/nacl_browser.h" | 58 #include "components/nacl/browser/nacl_browser.h" |
59 #include "components/nacl/browser/pnacl_host.h" | 59 #include "components/nacl/browser/pnacl_host.h" |
60 #include "components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h" | 60 #include "components/ntp_snippets/bookmarks/bookmark_last_visit_utils.h" |
61 #include "components/ntp_snippets/content_suggestions_service.h" | 61 #include "components/ntp_snippets/content_suggestions_service.h" |
62 #include "components/omnibox/browser/omnibox_pref_names.h" | 62 #include "components/omnibox/browser/omnibox_pref_names.h" |
63 #include "components/open_from_clipboard/clipboard_recent_content.h" | |
63 #include "components/password_manager/core/browser/password_store.h" | 64 #include "components/password_manager/core/browser/password_store.h" |
64 #include "components/prefs/pref_service.h" | 65 #include "components/prefs/pref_service.h" |
65 #include "components/previews/core/previews_ui_service.h" | 66 #include "components/previews/core/previews_ui_service.h" |
66 #include "components/search_engines/template_url_service.h" | 67 #include "components/search_engines/template_url_service.h" |
67 #include "components/sessions/core/tab_restore_service.h" | 68 #include "components/sessions/core/tab_restore_service.h" |
68 #include "components/translate/core/browser/language_model.h" | 69 #include "components/translate/core/browser/language_model.h" |
69 #include "components/web_cache/browser/web_cache_manager.h" | 70 #include "components/web_cache/browser/web_cache_manager.h" |
70 #include "content/public/browser/browsing_data_filter_builder.h" | 71 #include "content/public/browser/browsing_data_filter_builder.h" |
71 #include "content/public/browser/plugin_data_remover.h" | 72 #include "content/public/browser/plugin_data_remover.h" |
72 #include "content/public/browser/ssl_host_state_delegate.h" | 73 #include "content/public/browser/ssl_host_state_delegate.h" |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
413 if (history_service) { | 414 if (history_service) { |
414 // TODO(dmurph): Support all backends with filter (crbug.com/113621). | 415 // TODO(dmurph): Support all backends with filter (crbug.com/113621). |
415 base::RecordAction(UserMetricsAction("ClearBrowsingData_History")); | 416 base::RecordAction(UserMetricsAction("ClearBrowsingData_History")); |
416 clear_history_.Start(); | 417 clear_history_.Start(); |
417 history_service->ExpireLocalAndRemoteHistoryBetween( | 418 history_service->ExpireLocalAndRemoteHistoryBetween( |
418 WebHistoryServiceFactory::GetForProfile(profile_), std::set<GURL>(), | 419 WebHistoryServiceFactory::GetForProfile(profile_), std::set<GURL>(), |
419 delete_begin_, delete_end_, | 420 delete_begin_, delete_end_, |
420 clear_history_.GetCompletionCallback(), | 421 clear_history_.GetCompletionCallback(), |
421 &history_task_tracker_); | 422 &history_task_tracker_); |
422 } | 423 } |
424 ClipboardRecentContent::GetInstance()->SuppressClipboardContent(); | |
msramek
2017/04/03 17:44:56
Are we sure that this exists? I can't find any cal
Mark P
2017/04/03 18:04:44
Yes, it should exist. It gets created when the om
| |
423 | 425 |
424 // Currently, ContentSuggestionService instance exists only on Android. | 426 // Currently, ContentSuggestionService instance exists only on Android. |
425 ntp_snippets::ContentSuggestionsService* content_suggestions_service = | 427 ntp_snippets::ContentSuggestionsService* content_suggestions_service = |
426 ContentSuggestionsServiceFactory::GetForProfileIfExists(profile_); | 428 ContentSuggestionsServiceFactory::GetForProfileIfExists(profile_); |
427 if (content_suggestions_service) { | 429 if (content_suggestions_service) { |
428 content_suggestions_service->ClearHistory(delete_begin_, delete_end_, | 430 content_suggestions_service->ClearHistory(delete_begin_, delete_end_, |
429 filter); | 431 filter); |
430 } | 432 } |
431 | 433 |
432 // Remove the last visit dates meta-data from the bookmark model. | 434 // Remove the last visit dates meta-data from the bookmark model. |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1122 } | 1124 } |
1123 | 1125 |
1124 void ChromeBrowsingDataRemoverDelegate:: | 1126 void ChromeBrowsingDataRemoverDelegate:: |
1125 OnDeauthorizeFlashContentLicensesCompleted( | 1127 OnDeauthorizeFlashContentLicensesCompleted( |
1126 uint32_t request_id, | 1128 uint32_t request_id, |
1127 bool /* success */) { | 1129 bool /* success */) { |
1128 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_); | 1130 DCHECK_EQ(request_id, deauthorize_flash_content_licenses_request_id_); |
1129 clear_flash_content_licenses_.GetCompletionCallback().Run(); | 1131 clear_flash_content_licenses_.GetCompletionCallback().Run(); |
1130 } | 1132 } |
1131 #endif | 1133 #endif |
OLD | NEW |