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 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 origin_set_mask_ & BrowsingDataHelper::UNPROTECTED_WEB) { | 428 origin_set_mask_ & BrowsingDataHelper::UNPROTECTED_WEB) { |
429 content::RecordAction(UserMetricsAction("ClearBrowsingData_Cookies")); | 429 content::RecordAction(UserMetricsAction("ClearBrowsingData_Cookies")); |
430 | 430 |
431 storage_partition_remove_mask |= | 431 storage_partition_remove_mask |= |
432 content::StoragePartition::REMOVE_DATA_MASK_COOKIES; | 432 content::StoragePartition::REMOVE_DATA_MASK_COOKIES; |
433 | 433 |
434 // Also delete the LoggedIn Predictor, which tries to keep track of which | 434 // Also delete the LoggedIn Predictor, which tries to keep track of which |
435 // sites a user is logged into. | 435 // sites a user is logged into. |
436 ClearLoggedInPredictor(); | 436 ClearLoggedInPredictor(); |
437 | 437 |
438 #if defined(FULL_SAFE_BROWSING) || defined(MOBILE_SAFE_BROWSING) | 438 #if defined(SAFE_BROWSING_SERVICE) |
439 // Clear the safebrowsing cookies only if time period is for "all time". It | 439 // Clear the safebrowsing cookies only if time period is for "all time". It |
440 // doesn't make sense to apply the time period of deleting in the last X | 440 // doesn't make sense to apply the time period of deleting in the last X |
441 // hours/days to the safebrowsing cookies since they aren't the result of | 441 // hours/days to the safebrowsing cookies since they aren't the result of |
442 // any user action. | 442 // any user action. |
443 if (delete_begin_ == base::Time()) { | 443 if (delete_begin_ == base::Time()) { |
444 SafeBrowsingService* sb_service = | 444 SafeBrowsingService* sb_service = |
445 g_browser_process->safe_browsing_service(); | 445 g_browser_process->safe_browsing_service(); |
446 if (sb_service) { | 446 if (sb_service) { |
447 net::URLRequestContextGetter* sb_context = | 447 net::URLRequestContextGetter* sb_context = |
448 sb_service->url_request_context(); | 448 sb_service->url_request_context(); |
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 waiting_for_clear_webrtc_logs_ = false; | 1174 waiting_for_clear_webrtc_logs_ = false; |
1175 NotifyAndDeleteIfDone(); | 1175 NotifyAndDeleteIfDone(); |
1176 } | 1176 } |
1177 #endif | 1177 #endif |
1178 | 1178 |
1179 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { | 1179 void BrowsingDataRemover::OnClearedDomainReliabilityMonitor() { |
1180 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1180 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
1181 waiting_for_clear_domain_reliability_monitor_ = false; | 1181 waiting_for_clear_domain_reliability_monitor_ = false; |
1182 NotifyAndDeleteIfDone(); | 1182 NotifyAndDeleteIfDone(); |
1183 } | 1183 } |
OLD | NEW |