| 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 | 10 |
| (...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 898 } | 898 } |
| 899 } | 899 } |
| 900 | 900 |
| 901 if (remove_mask & REMOVE_HISTORY) { | 901 if (remove_mask & REMOVE_HISTORY) { |
| 902 password_manager::PasswordStore* password_store = | 902 password_manager::PasswordStore* password_store = |
| 903 PasswordStoreFactory::GetForProfile( | 903 PasswordStoreFactory::GetForProfile( |
| 904 profile_, ServiceAccessType::EXPLICIT_ACCESS).get(); | 904 profile_, ServiceAccessType::EXPLICIT_ACCESS).get(); |
| 905 | 905 |
| 906 if (password_store) { | 906 if (password_store) { |
| 907 waiting_for_clear_passwords_stats_ = true; | 907 waiting_for_clear_passwords_stats_ = true; |
| 908 password_store->RemoveStatisticsCreatedBetween( | 908 password_store->RemoveStatisticsByOriginAndTime( |
| 909 delete_begin_, delete_end_, | 909 nullable_filter, delete_begin_, delete_end_, |
| 910 base::Bind(&BrowsingDataRemover::OnClearedPasswordsStats, | 910 base::Bind(&BrowsingDataRemover::OnClearedPasswordsStats, |
| 911 weak_ptr_factory_.GetWeakPtr())); | 911 weak_ptr_factory_.GetWeakPtr())); |
| 912 } | 912 } |
| 913 } | 913 } |
| 914 | 914 |
| 915 // TODO(dmurph): Support all backends with filter (crbug.com/113621). | 915 // TODO(dmurph): Support all backends with filter (crbug.com/113621). |
| 916 if (remove_mask & REMOVE_FORM_DATA) { | 916 if (remove_mask & REMOVE_FORM_DATA) { |
| 917 content::RecordAction(UserMetricsAction("ClearBrowsingData_Autofill")); | 917 content::RecordAction(UserMetricsAction("ClearBrowsingData_Autofill")); |
| 918 scoped_refptr<autofill::AutofillWebDataService> web_data_service = | 918 scoped_refptr<autofill::AutofillWebDataService> web_data_service = |
| 919 WebDataServiceFactory::GetAutofillWebDataForProfile( | 919 WebDataServiceFactory::GetAutofillWebDataForProfile( |
| (...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1541 waiting_for_clear_offline_page_data_ = false; | 1541 waiting_for_clear_offline_page_data_ = false; |
| 1542 NotifyIfDone(); | 1542 NotifyIfDone(); |
| 1543 } | 1543 } |
| 1544 #endif | 1544 #endif |
| 1545 | 1545 |
| 1546 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { | 1546 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { |
| 1547 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1547 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 1548 waiting_for_clear_domain_reliability_monitor_ = false; | 1548 waiting_for_clear_domain_reliability_monitor_ = false; |
| 1549 NotifyIfDone(); | 1549 NotifyIfDone(); |
| 1550 } | 1550 } |
| OLD | NEW |