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/history/chrome_history_client.h" | 5 #include "chrome/browser/history/chrome_history_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "chrome/browser/history/chrome_history_backend_client.h" | 10 #include "chrome/browser/history/chrome_history_backend_client.h" |
11 #include "chrome/browser/history/history_utils.h" | 11 #include "chrome/browser/history/history_utils.h" |
12 #include "chrome/browser/ui/profile_error_dialog.h" | 12 #include "chrome/browser/ui/profile_error_dialog.h" |
13 #include "chrome/common/chrome_version_info.h" | 13 #include "chrome/common/channel_info.h" |
brettw
2015/07/31 21:13:16
Ditto
| |
14 #include "chrome/grit/chromium_strings.h" | 14 #include "chrome/grit/chromium_strings.h" |
15 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
16 #include "components/bookmarks/browser/bookmark_model.h" | 16 #include "components/bookmarks/browser/bookmark_model.h" |
17 #include "components/history/core/browser/history_service.h" | 17 #include "components/history/core/browser/history_service.h" |
18 | 18 |
19 ChromeHistoryClient::ChromeHistoryClient( | 19 ChromeHistoryClient::ChromeHistoryClient( |
20 bookmarks::BookmarkModel* bookmark_model) | 20 bookmarks::BookmarkModel* bookmark_model) |
21 : bookmark_model_(bookmark_model), is_bookmark_model_observer_(false) { | 21 : bookmark_model_(bookmark_model), is_bookmark_model_observer_(false) { |
22 } | 22 } |
23 | 23 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 } | 91 } |
92 | 92 |
93 void ChromeHistoryClient::BookmarkAllUserNodesRemoved( | 93 void ChromeHistoryClient::BookmarkAllUserNodesRemoved( |
94 bookmarks::BookmarkModel* bookmark_model, | 94 bookmarks::BookmarkModel* bookmark_model, |
95 const std::set<GURL>& removed_urls) { | 95 const std::set<GURL>& removed_urls) { |
96 BaseBookmarkModelObserver::BookmarkAllUserNodesRemoved(bookmark_model, | 96 BaseBookmarkModelObserver::BookmarkAllUserNodesRemoved(bookmark_model, |
97 removed_urls); | 97 removed_urls); |
98 DCHECK(!on_bookmarks_removed_.is_null()); | 98 DCHECK(!on_bookmarks_removed_.is_null()); |
99 on_bookmarks_removed_.Run(removed_urls); | 99 on_bookmarks_removed_.Run(removed_urls); |
100 } | 100 } |
OLD | NEW |