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

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

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 | « chrome/browser/ui/webui/DEPS ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.h » ('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 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 "chrome/browser/ui/webui/browsing_history_handler.h" 5 #include "chrome/browser/ui/webui/browsing_history_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 30 matching lines...) Expand all
41 #include "components/browsing_data_ui/history_notice_utils.h" 41 #include "components/browsing_data_ui/history_notice_utils.h"
42 #include "components/favicon/core/fallback_icon_service.h" 42 #include "components/favicon/core/fallback_icon_service.h"
43 #include "components/favicon/core/fallback_url_util.h" 43 #include "components/favicon/core/fallback_url_util.h"
44 #include "components/favicon/core/large_icon_service.h" 44 #include "components/favicon/core/large_icon_service.h"
45 #include "components/history/core/browser/history_service.h" 45 #include "components/history/core/browser/history_service.h"
46 #include "components/history/core/browser/history_types.h" 46 #include "components/history/core/browser/history_types.h"
47 #include "components/history/core/browser/web_history_service.h" 47 #include "components/history/core/browser/web_history_service.h"
48 #include "components/keyed_service/core/service_access_type.h" 48 #include "components/keyed_service/core/service_access_type.h"
49 #include "components/prefs/pref_service.h" 49 #include "components/prefs/pref_service.h"
50 #include "components/query_parser/snippet.h" 50 #include "components/query_parser/snippet.h"
51 #include "components/sync/protocol/history_delete_directive_specifics.pb.h"
52 #include "components/sync/protocol/sync_enums.pb.h"
51 #include "components/sync_driver/device_info.h" 53 #include "components/sync_driver/device_info.h"
52 #include "components/sync_driver/device_info_tracker.h" 54 #include "components/sync_driver/device_info_tracker.h"
53 #include "components/url_formatter/url_formatter.h" 55 #include "components/url_formatter/url_formatter.h"
54 #include "content/public/browser/url_data_source.h" 56 #include "content/public/browser/url_data_source.h"
55 #include "content/public/browser/web_ui.h" 57 #include "content/public/browser/web_ui.h"
56 #include "grit/components_strings.h" 58 #include "grit/components_strings.h"
57 #include "sync/protocol/history_delete_directive_specifics.pb.h"
58 #include "sync/protocol/sync_enums.pb.h"
59 #include "ui/base/l10n/l10n_util.h" 59 #include "ui/base/l10n/l10n_util.h"
60 #include "ui/base/l10n/time_format.h" 60 #include "ui/base/l10n/time_format.h"
61 61
62 #if defined(ENABLE_EXTENSIONS) 62 #if defined(ENABLE_EXTENSIONS)
63 #include "chrome/browser/extensions/activity_log/activity_log.h" 63 #include "chrome/browser/extensions/activity_log/activity_log.h"
64 #endif 64 #endif
65 65
66 #if defined(ENABLE_SUPERVISED_USERS) 66 #if defined(ENABLE_SUPERVISED_USERS)
67 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h" 67 #include "chrome/browser/supervised_user/supervised_user_navigation_observer.h"
68 #include "chrome/browser/supervised_user/supervised_user_service.h" 68 #include "chrome/browser/supervised_user/supervised_user_service.h"
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 952
953 void BrowsingHistoryHandler::OnURLsDeleted( 953 void BrowsingHistoryHandler::OnURLsDeleted(
954 history::HistoryService* history_service, 954 history::HistoryService* history_service,
955 bool all_history, 955 bool all_history,
956 bool expired, 956 bool expired,
957 const history::URLRows& deleted_rows, 957 const history::URLRows& deleted_rows,
958 const std::set<GURL>& favicon_urls) { 958 const std::set<GURL>& favicon_urls) {
959 if (all_history || DeletionsDiffer(deleted_rows, urls_to_be_deleted_)) 959 if (all_history || DeletionsDiffer(deleted_rows, urls_to_be_deleted_))
960 web_ui()->CallJavascriptFunctionUnsafe("historyDeleted"); 960 web_ui()->CallJavascriptFunctionUnsafe("historyDeleted");
961 } 961 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/DEPS ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698