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/policy/managed_bookmarks_policy_handler.h" | 5 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "components/bookmarks/common/bookmark_pref_names.h" | 10 #include "components/bookmarks/common/bookmark_pref_names.h" |
11 #include "components/bookmarks/managed/managed_bookmarks_tracker.h" | 11 #include "components/bookmarks/managed/managed_bookmarks_tracker.h" |
12 #include "components/policy/core/browser/policy_error_map.h" | 12 #include "components/policy/core/browser/policy_error_map.h" |
13 #include "components/policy/core/common/policy_map.h" | 13 #include "components/policy/core/common/policy_map.h" |
| 14 #include "components/policy/policy_constants.h" |
14 #include "components/prefs/pref_value_map.h" | 15 #include "components/prefs/pref_value_map.h" |
15 #include "components/url_formatter/url_fixer.h" | 16 #include "components/url_formatter/url_fixer.h" |
16 #include "policy/policy_constants.h" | |
17 #include "url/gurl.h" | 17 #include "url/gurl.h" |
18 | 18 |
19 using bookmarks::ManagedBookmarksTracker; | 19 using bookmarks::ManagedBookmarksTracker; |
20 | 20 |
21 namespace policy { | 21 namespace policy { |
22 | 22 |
23 ManagedBookmarksPolicyHandler::ManagedBookmarksPolicyHandler( | 23 ManagedBookmarksPolicyHandler::ManagedBookmarksPolicyHandler( |
24 Schema chrome_schema) | 24 Schema chrome_schema) |
25 : SchemaValidatingPolicyHandler( | 25 : SchemaValidatingPolicyHandler( |
26 key::kManagedBookmarks, | 26 key::kManagedBookmarks, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 continue; | 98 continue; |
99 } | 99 } |
100 dict->SetString(ManagedBookmarksTracker::kUrl, gurl.spec()); | 100 dict->SetString(ManagedBookmarksTracker::kUrl, gurl.spec()); |
101 } | 101 } |
102 | 102 |
103 ++it; | 103 ++it; |
104 } | 104 } |
105 } | 105 } |
106 | 106 |
107 } // namespace policy | 107 } // namespace policy |
OLD | NEW |