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

Side by Side Diff: ios/chrome/browser/ui/webui/history/browsing_history_handler.cc

Issue 1662523004: 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
« no previous file with comments | « ios/chrome/browser/ui/webui/flags_ui.cc ('k') | ios/chrome/test/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/ui/webui/history/browsing_history_handler.h" 5 #include "ios/chrome/browser/ui/webui/history/browsing_history_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
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/i18n/rtl.h" 13 #include "base/i18n/rtl.h"
14 #include "base/i18n/time_formatting.h" 14 #include "base/i18n/time_formatting.h"
15 #include "base/metrics/histogram.h" 15 #include "base/metrics/histogram.h"
16 #include "base/prefs/pref_service.h"
17 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
18 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/utf_string_conversions.h" 18 #include "base/strings/utf_string_conversions.h"
20 #include "base/time/time.h" 19 #include "base/time/time.h"
21 #include "base/values.h" 20 #include "base/values.h"
22 #include "components/bookmarks/browser/bookmark_model.h" 21 #include "components/bookmarks/browser/bookmark_model.h"
23 #include "components/bookmarks/browser/bookmark_utils.h" 22 #include "components/bookmarks/browser/bookmark_utils.h"
24 #include "components/browser_sync/browser/profile_sync_service.h" 23 #include "components/browser_sync/browser/profile_sync_service.h"
25 #include "components/history/core/browser/history_service.h" 24 #include "components/history/core/browser/history_service.h"
26 #include "components/history/core/browser/history_types.h" 25 #include "components/history/core/browser/history_types.h"
27 #include "components/history/core/browser/top_sites.h" 26 #include "components/history/core/browser/top_sites.h"
28 #include "components/history/core/browser/web_history_service.h" 27 #include "components/history/core/browser/web_history_service.h"
29 #include "components/keyed_service/core/service_access_type.h" 28 #include "components/keyed_service/core/service_access_type.h"
29 #include "components/prefs/pref_service.h"
30 #include "components/sync_driver/device_info.h" 30 #include "components/sync_driver/device_info.h"
31 #include "components/sync_driver/device_info_tracker.h" 31 #include "components/sync_driver/device_info_tracker.h"
32 #include "components/url_formatter/url_formatter.h" 32 #include "components/url_formatter/url_formatter.h"
33 #include "grit/components_strings.h" 33 #include "grit/components_strings.h"
34 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h" 34 #include "ios/chrome/browser/bookmarks/bookmark_model_factory.h"
35 #include "ios/chrome/browser/chrome_url_constants.h" 35 #include "ios/chrome/browser/chrome_url_constants.h"
36 #include "ios/chrome/browser/favicon/favicon_service_factory.h" 36 #include "ios/chrome/browser/favicon/favicon_service_factory.h"
37 #include "ios/chrome/browser/history/history_service_factory.h" 37 #include "ios/chrome/browser/history/history_service_factory.h"
38 #include "ios/chrome/browser/history/history_utils.h" 38 #include "ios/chrome/browser/history/history_utils.h"
39 #include "ios/chrome/browser/history/top_sites_factory.h" 39 #include "ios/chrome/browser/history/top_sites_factory.h"
(...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 811
812 void BrowsingHistoryHandler::OnURLsDeleted( 812 void BrowsingHistoryHandler::OnURLsDeleted(
813 history::HistoryService* history_service, 813 history::HistoryService* history_service,
814 bool all_history, 814 bool all_history,
815 bool expired, 815 bool expired,
816 const history::URLRows& deleted_rows, 816 const history::URLRows& deleted_rows,
817 const std::set<GURL>& favicon_urls) { 817 const std::set<GURL>& favicon_urls) {
818 if (all_history || DeletionsDiffer(deleted_rows, urls_to_be_deleted_)) 818 if (all_history || DeletionsDiffer(deleted_rows, urls_to_be_deleted_))
819 web_ui()->CallJavascriptFunction("historyDeleted"); 819 web_ui()->CallJavascriptFunction("historyDeleted");
820 } 820 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/webui/flags_ui.cc ('k') | ios/chrome/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698