Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Side by Side Diff: chrome/browser/policy/managed_bookmarks_policy_handler.cc

Issue 961683002: Move ManagedBookmarksTracker from policy/core/browser to bookmarks/managed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add back to policy DEPS Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/bookmarks/chrome_bookmark_client.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/chrome_bookmark_client.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698