Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Side by Side Diff: ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.h" 5 #include "ios/chrome/browser/browsing_data/ios_chrome_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
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/metrics/histogram_macros.h" 15 #include "base/metrics/histogram_macros.h"
16 #include "base/metrics/user_metrics.h" 16 #include "base/metrics/user_metrics.h"
17 #include "base/prefs/pref_service.h"
17 #include "components/autofill/core/browser/personal_data_manager.h" 18 #include "components/autofill/core/browser/personal_data_manager.h"
18 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" 19 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h"
19 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h" 20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h"
20 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h" 21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h"
21 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" 22 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
22 #include "components/history/core/browser/history_service.h" 23 #include "components/history/core/browser/history_service.h"
23 #include "components/keyed_service/core/service_access_type.h" 24 #include "components/keyed_service/core/service_access_type.h"
24 #include "components/omnibox/browser/omnibox_pref_names.h" 25 #include "components/omnibox/browser/omnibox_pref_names.h"
25 #include "components/password_manager/core/browser/password_store.h" 26 #include "components/password_manager/core/browser/password_store.h"
26 #include "components/prefs/pref_service.h"
27 #include "components/search_engines/template_url_service.h" 27 #include "components/search_engines/template_url_service.h"
28 #include "components/sessions/core/tab_restore_service.h" 28 #include "components/sessions/core/tab_restore_service.h"
29 #include "ios/chrome/browser/application_context.h" 29 #include "ios/chrome/browser/application_context.h"
30 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" 30 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h"
31 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox y_settings.h" 31 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox y_settings.h"
32 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox y_settings_factory.h" 32 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox y_settings_factory.h"
33 #include "ios/chrome/browser/history/history_service_factory.h" 33 #include "ios/chrome/browser/history/history_service_factory.h"
34 #include "ios/chrome/browser/history/web_history_service_factory.h" 34 #include "ios/chrome/browser/history/web_history_service_factory.h"
35 #include "ios/chrome/browser/ios_chrome_io_thread.h" 35 #include "ios/chrome/browser/ios_chrome_io_thread.h"
36 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h" 36 #include "ios/chrome/browser/passwords/ios_chrome_password_store_factory.h"
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 waiting_for_clear_autofill_origin_urls_ = false; 553 waiting_for_clear_autofill_origin_urls_ = false;
554 NotifyAndDeleteIfDone(); 554 NotifyAndDeleteIfDone();
555 } 555 }
556 556
557 // static 557 // static
558 IOSChromeBrowsingDataRemover::CallbackSubscription 558 IOSChromeBrowsingDataRemover::CallbackSubscription
559 IOSChromeBrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback( 559 IOSChromeBrowsingDataRemover::RegisterOnBrowsingDataRemovedCallback(
560 const IOSChromeBrowsingDataRemover::Callback& callback) { 560 const IOSChromeBrowsingDataRemover::Callback& callback) {
561 return GetOnBrowsingDataRemovedCallbacks()->Add(callback); 561 return GetOnBrowsingDataRemovedCallbacks()->Add(callback);
562 } 562 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698