| 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/bookmarks/managed/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 "policy/policy_constants.h" | 14 #include "policy/policy_constants.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 using bookmarks::ManagedBookmarksTracker; |
| 18 |
| 17 namespace policy { | 19 namespace policy { |
| 18 | 20 |
| 19 ManagedBookmarksPolicyHandler::ManagedBookmarksPolicyHandler( | 21 ManagedBookmarksPolicyHandler::ManagedBookmarksPolicyHandler( |
| 20 Schema chrome_schema) | 22 Schema chrome_schema) |
| 21 : SchemaValidatingPolicyHandler( | 23 : SchemaValidatingPolicyHandler( |
| 22 key::kManagedBookmarks, | 24 key::kManagedBookmarks, |
| 23 chrome_schema.GetKnownProperty(key::kManagedBookmarks), | 25 chrome_schema.GetKnownProperty(key::kManagedBookmarks), |
| 24 SCHEMA_ALLOW_INVALID) {} | 26 SCHEMA_ALLOW_INVALID) {} |
| 25 | 27 |
| 26 ManagedBookmarksPolicyHandler::~ManagedBookmarksPolicyHandler() {} | 28 ManagedBookmarksPolicyHandler::~ManagedBookmarksPolicyHandler() {} |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 continue; | 77 continue; |
| 76 } | 78 } |
| 77 dict->SetString(ManagedBookmarksTracker::kUrl, gurl.spec()); | 79 dict->SetString(ManagedBookmarksTracker::kUrl, gurl.spec()); |
| 78 } | 80 } |
| 79 | 81 |
| 80 ++it; | 82 ++it; |
| 81 } | 83 } |
| 82 } | 84 } |
| 83 | 85 |
| 84 } // namespace policy | 86 } // namespace policy |
| OLD | NEW |