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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 plugin_data_remover_->StartRemoving(delete_begin_); | 551 plugin_data_remover_->StartRemoving(delete_begin_); |
552 | 552 |
553 base::WaitableEventWatcher::EventCallback watcher_callback = | 553 base::WaitableEventWatcher::EventCallback watcher_callback = |
554 base::Bind(&BrowsingDataRemover::OnWaitableEventSignaled, | 554 base::Bind(&BrowsingDataRemover::OnWaitableEventSignaled, |
555 base::Unretained(this)); | 555 base::Unretained(this)); |
556 watcher_.StartWatching(event, watcher_callback); | 556 watcher_.StartWatching(event, watcher_callback); |
557 } | 557 } |
558 #endif | 558 #endif |
559 | 559 |
560 #if defined(OS_ANDROID) | 560 #if defined(OS_ANDROID) |
561 if (remove_mask & REMOVE_APP_BANNER_DATA) { | 561 if (remove_mask & REMOVE_APP_BANNER_DATA || remove_mask & REMOVE_HISTORY) { |
562 profile_->GetHostContentSettingsMap()->ClearSettingsForOneType( | 562 profile_->GetHostContentSettingsMap()->ClearSettingsForOneType( |
563 CONTENT_SETTINGS_TYPE_APP_BANNER); | 563 CONTENT_SETTINGS_TYPE_APP_BANNER); |
564 } | 564 } |
565 #endif | 565 #endif |
566 | 566 |
567 if (remove_mask & REMOVE_PASSWORDS) { | 567 if (remove_mask & REMOVE_PASSWORDS) { |
568 content::RecordAction(UserMetricsAction("ClearBrowsingData_Passwords")); | 568 content::RecordAction(UserMetricsAction("ClearBrowsingData_Passwords")); |
569 password_manager::PasswordStore* password_store = | 569 password_manager::PasswordStore* password_store = |
570 PasswordStoreFactory::GetForProfile( | 570 PasswordStoreFactory::GetForProfile( |
571 profile_, ServiceAccessType::EXPLICIT_ACCESS).get(); | 571 profile_, ServiceAccessType::EXPLICIT_ACCESS).get(); |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 waiting_for_clear_domain_reliability_monitor_ = false; | 1220 waiting_for_clear_domain_reliability_monitor_ = false; |
1221 NotifyAndDeleteIfDone(); | 1221 NotifyAndDeleteIfDone(); |
1222 } | 1222 } |
1223 | 1223 |
1224 // static | 1224 // static |
1225 BrowsingDataRemover::CallbackSubscription | 1225 BrowsingDataRemover::CallbackSubscription |
1226 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( | 1226 BrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( |
1227 const BrowsingDataRemover::Callback& callback) { | 1227 const BrowsingDataRemover::Callback& callback) { |
1228 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); | 1228 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); |
1229 } | 1229 } |
OLD | NEW |