OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/bookmarks/chrome_bookmark_client.h" | 5 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" |
6 | 6 |
7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
8 #include "chrome/browser/favicon/favicon_changed_details.h" | 8 #include "chrome/browser/favicon/favicon_changed_details.h" |
9 #include "chrome/browser/favicon/favicon_service.h" | 9 #include "chrome/browser/favicon/favicon_service.h" |
10 #include "chrome/browser/favicon/favicon_service_factory.h" | 10 #include "chrome/browser/favicon/favicon_service_factory.h" |
11 #include "chrome/browser/history/history_service.h" | 11 #include "chrome/browser/history/history_service.h" |
12 #include "chrome/browser/history/history_service_factory.h" | 12 #include "chrome/browser/history/history_service_factory.h" |
13 #include "chrome/browser/history/url_database.h" | 13 #include "chrome/browser/history/url_database.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "components/bookmarks/core/browser/bookmark_model.h" | 15 #include "components/bookmarks/browser/bookmark_model.h" |
16 #include "content/public/browser/notification_details.h" | 16 #include "content/public/browser/notification_details.h" |
17 #include "content/public/browser/notification_source.h" | 17 #include "content/public/browser/notification_source.h" |
18 #include "content/public/browser/user_metrics.h" | 18 #include "content/public/browser/user_metrics.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 void NotifyHistoryOfRemovedURLs(Profile* profile, | 22 void NotifyHistoryOfRemovedURLs(Profile* profile, |
23 const std::set<GURL>& removed_urls) { | 23 const std::set<GURL>& removed_urls) { |
24 HistoryService* history_service = | 24 HistoryService* history_service = |
25 HistoryServiceFactory::GetForProfile(profile, Profile::EXPLICIT_ACCESS); | 25 HistoryServiceFactory::GetForProfile(profile, Profile::EXPLICIT_ACCESS); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 const BookmarkNode* node, | 132 const BookmarkNode* node, |
133 const std::set<GURL>& removed_urls) { | 133 const std::set<GURL>& removed_urls) { |
134 NotifyHistoryOfRemovedURLs(profile_, removed_urls); | 134 NotifyHistoryOfRemovedURLs(profile_, removed_urls); |
135 } | 135 } |
136 | 136 |
137 void ChromeBookmarkClient::BookmarkAllNodesRemoved( | 137 void ChromeBookmarkClient::BookmarkAllNodesRemoved( |
138 BookmarkModel* model, | 138 BookmarkModel* model, |
139 const std::set<GURL>& removed_urls) { | 139 const std::set<GURL>& removed_urls) { |
140 NotifyHistoryOfRemovedURLs(profile_, removed_urls); | 140 NotifyHistoryOfRemovedURLs(profile_, removed_urls); |
141 } | 141 } |
OLD | NEW |