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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" |
8 #include "chrome/browser/favicon/favicon_service_factory.h" | 9 #include "chrome/browser/favicon/favicon_service_factory.h" |
9 #include "chrome/browser/history/history_service_factory.h" | 10 #include "chrome/browser/history/history_service_factory.h" |
10 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
11 #include "components/bookmarks/browser/bookmark_node.h" | 12 #include "components/bookmarks/browser/bookmark_node.h" |
12 #include "components/bookmarks/browser/bookmark_storage.h" | 13 #include "components/bookmarks/browser/bookmark_storage.h" |
13 #include "components/bookmarks/managed/managed_bookmark_service.h" | 14 #include "components/bookmarks/managed/managed_bookmark_service.h" |
14 #include "components/bookmarks/managed/managed_bookmark_util.h" | 15 #include "components/bookmarks/managed/managed_bookmark_util.h" |
15 #include "components/favicon/core/favicon_util.h" | 16 #include "components/favicon/core/favicon_util.h" |
16 #include "components/history/core/browser/history_service.h" | 17 #include "components/history/core/browser/history_service.h" |
17 #include "components/history/core/browser/url_database.h" | 18 #include "components/history/core/browser/url_database.h" |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 ? true | 116 ? true |
116 : managed_bookmark_service_->CanSyncNode(node); | 117 : managed_bookmark_service_->CanSyncNode(node); |
117 } | 118 } |
118 | 119 |
119 bool ChromeBookmarkClient::CanBeEditedByUser( | 120 bool ChromeBookmarkClient::CanBeEditedByUser( |
120 const bookmarks::BookmarkNode* node) { | 121 const bookmarks::BookmarkNode* node) { |
121 return !managed_bookmark_service_ | 122 return !managed_bookmark_service_ |
122 ? true | 123 ? true |
123 : managed_bookmark_service_->CanBeEditedByUser(node); | 124 : managed_bookmark_service_->CanBeEditedByUser(node); |
124 } | 125 } |
OLD | NEW |