OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browsing_data_remover.h" | 5 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 #if defined(ENABLE_EXTENSIONS) | 103 #if defined(ENABLE_EXTENSIONS) |
104 #include "chrome/browser/extensions/activity_log/activity_log.h" | 104 #include "chrome/browser/extensions/activity_log/activity_log.h" |
105 #include "extensions/browser/extension_prefs.h" | 105 #include "extensions/browser/extension_prefs.h" |
106 #endif | 106 #endif |
107 | 107 |
108 #if defined(ENABLE_PLUGINS) | 108 #if defined(ENABLE_PLUGINS) |
109 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" | 109 #include "chrome/browser/browsing_data/browsing_data_flash_lso_helper.h" |
110 #endif | 110 #endif |
111 | 111 |
112 #if defined(ENABLE_SESSION_SERVICE) | 112 #if BUILDFLAG(ENABLE_SESSION_SERVICE) |
113 #include "chrome/browser/sessions/session_service.h" | 113 #include "chrome/browser/sessions/session_service.h" |
114 #include "chrome/browser/sessions/session_service_factory.h" | 114 #include "chrome/browser/sessions/session_service_factory.h" |
115 #endif | 115 #endif |
116 | 116 |
117 #if defined(OS_CHROMEOS) | 117 #if defined(OS_CHROMEOS) |
118 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 118 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
119 #include "chromeos/attestation/attestation_constants.h" | 119 #include "chromeos/attestation/attestation_constants.h" |
120 #include "chromeos/cryptohome/cryptohome_parameters.h" | 120 #include "chromeos/cryptohome/cryptohome_parameters.h" |
121 #include "chromeos/dbus/cryptohome_client.h" | 121 #include "chromeos/dbus/cryptohome_client.h" |
122 #include "chromeos/dbus/dbus_thread_manager.h" | 122 #include "chromeos/dbus/dbus_thread_manager.h" |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 if (filter_builder.IsEmptyBlacklist()) { | 624 if (filter_builder.IsEmptyBlacklist()) { |
625 // We also delete the list of recently closed tabs. Since these expire, | 625 // We also delete the list of recently closed tabs. Since these expire, |
626 // they can't be more than a day old, so we can simply clear them all. | 626 // they can't be more than a day old, so we can simply clear them all. |
627 sessions::TabRestoreService* tab_service = | 627 sessions::TabRestoreService* tab_service = |
628 TabRestoreServiceFactory::GetForProfile(profile_); | 628 TabRestoreServiceFactory::GetForProfile(profile_); |
629 if (tab_service) { | 629 if (tab_service) { |
630 tab_service->ClearEntries(); | 630 tab_service->ClearEntries(); |
631 tab_service->DeleteLastSession(); | 631 tab_service->DeleteLastSession(); |
632 } | 632 } |
633 | 633 |
634 #if defined(ENABLE_SESSION_SERVICE) | 634 #if BUILDFLAG(ENABLE_SESSION_SERVICE) |
635 // We also delete the last session when we delete the history. | 635 // We also delete the last session when we delete the history. |
636 SessionService* session_service = | 636 SessionService* session_service = |
637 SessionServiceFactory::GetForProfile(profile_); | 637 SessionServiceFactory::GetForProfile(profile_); |
638 if (session_service) | 638 if (session_service) |
639 session_service->DeleteLastSession(); | 639 session_service->DeleteLastSession(); |
640 #endif | 640 #endif |
641 } | 641 } |
642 | 642 |
643 // The saved Autofill profiles and credit cards can include the origin from | 643 // The saved Autofill profiles and credit cards can include the origin from |
644 // which these profiles and credit cards were learned. These are a form of | 644 // which these profiles and credit cards were learned. These are a form of |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 waiting_for_clear_offline_page_data_ = false; | 1545 waiting_for_clear_offline_page_data_ = false; |
1546 NotifyIfDone(); | 1546 NotifyIfDone(); |
1547 } | 1547 } |
1548 #endif | 1548 #endif |
1549 | 1549 |
1550 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { | 1550 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { |
1551 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1551 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
1552 waiting_for_clear_domain_reliability_monitor_ = false; | 1552 waiting_for_clear_domain_reliability_monitor_ = false; |
1553 NotifyIfDone(); | 1553 NotifyIfDone(); |
1554 } | 1554 } |
OLD | NEW |