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 "base/prefs/pref_value_map.h" | 7 #include "base/prefs/pref_value_map.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "components/bookmarks/common/bookmark_pref_names.h" | 9 #include "components/bookmarks/common/bookmark_pref_names.h" |
10 #include "components/policy/core/browser/managed_bookmarks_tracker.h" | 10 #include "components/policy/core/browser/managed_bookmarks_tracker.h" |
11 #include "components/policy/core/browser/policy_error_map.h" | 11 #include "components/policy/core/browser/policy_error_map.h" |
12 #include "components/policy/core/common/policy_map.h" | 12 #include "components/policy/core/common/policy_map.h" |
13 #include "components/url_fixer/url_fixer.h" | 13 #include "components/url_fixer/url_fixer.h" |
14 #include "grit/components_strings.h" | |
15 #include "policy/policy_constants.h" | 14 #include "policy/policy_constants.h" |
16 #include "url/gurl.h" | 15 #include "url/gurl.h" |
17 | 16 |
18 namespace policy { | 17 namespace policy { |
19 | 18 |
20 ManagedBookmarksPolicyHandler::ManagedBookmarksPolicyHandler( | 19 ManagedBookmarksPolicyHandler::ManagedBookmarksPolicyHandler( |
21 Schema chrome_schema) | 20 Schema chrome_schema) |
22 : SchemaValidatingPolicyHandler( | 21 : SchemaValidatingPolicyHandler( |
23 key::kManagedBookmarks, | 22 key::kManagedBookmarks, |
24 chrome_schema.GetKnownProperty(key::kManagedBookmarks), | 23 chrome_schema.GetKnownProperty(key::kManagedBookmarks), |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 continue; | 75 continue; |
77 } | 76 } |
78 dict->SetString(ManagedBookmarksTracker::kUrl, gurl.spec()); | 77 dict->SetString(ManagedBookmarksTracker::kUrl, gurl.spec()); |
79 } | 78 } |
80 | 79 |
81 ++it; | 80 ++it; |
82 } | 81 } |
83 } | 82 } |
84 | 83 |
85 } // namespace policy | 84 } // namespace policy |
OLD | NEW |