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/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/chrome_notification_types.h" | 11 #include "chrome/browser/chrome_notification_types.h" |
12 #include "chrome/browser/favicon/favicon_changed_details.h" | 12 #include "chrome/browser/favicon/favicon_changed_details.h" |
13 #include "chrome/browser/favicon/favicon_service.h" | 13 #include "chrome/browser/favicon/favicon_service.h" |
14 #include "chrome/browser/favicon/favicon_service_factory.h" | 14 #include "chrome/browser/favicon/favicon_service_factory.h" |
15 #include "chrome/browser/history/history_service.h" | 15 #include "chrome/browser/history/history_service.h" |
16 #include "chrome/browser/history/history_service_factory.h" | 16 #include "chrome/browser/history/history_service_factory.h" |
17 #include "chrome/browser/history/url_database.h" | |
18 #include "chrome/browser/policy/profile_policy_connector.h" | 17 #include "chrome/browser/policy/profile_policy_connector.h" |
19 #include "chrome/browser/policy/profile_policy_connector_factory.h" | 18 #include "chrome/browser/policy/profile_policy_connector_factory.h" |
20 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/profiles/startup_task_runner_service.h" | 20 #include "chrome/browser/profiles/startup_task_runner_service.h" |
22 #include "chrome/browser/profiles/startup_task_runner_service_factory.h" | 21 #include "chrome/browser/profiles/startup_task_runner_service_factory.h" |
23 #include "components/bookmarks/browser/bookmark_model.h" | 22 #include "components/bookmarks/browser/bookmark_model.h" |
24 #include "components/bookmarks/browser/bookmark_node.h" | 23 #include "components/bookmarks/browser/bookmark_node.h" |
| 24 #include "components/history/core/browser/url_database.h" |
25 #include "content/public/browser/browser_thread.h" | 25 #include "content/public/browser/browser_thread.h" |
26 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
27 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
28 #include "content/public/browser/user_metrics.h" | 28 #include "content/public/browser/user_metrics.h" |
29 #include "grit/components_strings.h" | 29 #include "grit/components_strings.h" |
30 #include "policy/policy_constants.h" | 30 #include "policy/policy_constants.h" |
31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 return extra_nodes.Pass(); | 254 return extra_nodes.Pass(); |
255 } | 255 } |
256 | 256 |
257 std::string ChromeBookmarkClient::GetManagedBookmarksDomain() { | 257 std::string ChromeBookmarkClient::GetManagedBookmarksDomain() { |
258 policy::ProfilePolicyConnector* connector = | 258 policy::ProfilePolicyConnector* connector = |
259 policy::ProfilePolicyConnectorFactory::GetForProfile(profile_); | 259 policy::ProfilePolicyConnectorFactory::GetForProfile(profile_); |
260 if (connector->IsPolicyFromCloudPolicy(policy::key::kManagedBookmarks)) | 260 if (connector->IsPolicyFromCloudPolicy(policy::key::kManagedBookmarks)) |
261 return connector->GetManagementDomain(); | 261 return connector->GetManagementDomain(); |
262 return std::string(); | 262 return std::string(); |
263 } | 263 } |
OLD | NEW |