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

Unified Diff: components/bookmarks/managed/managed_bookmarks_tracker.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/bookmarks/managed/BUILD.gn ('k') | components/bookmarks/managed/managed_bookmarks_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bookmarks/managed/managed_bookmarks_tracker.h
diff --git a/components/policy/core/browser/managed_bookmarks_tracker.h b/components/bookmarks/managed/managed_bookmarks_tracker.h
similarity index 89%
rename from components/policy/core/browser/managed_bookmarks_tracker.h
rename to components/bookmarks/managed/managed_bookmarks_tracker.h
index 965baa2ed5ebee92d6ad0fc08570748ac53e33f8..ecd157d79a83a7045b4468e4e3be01c1c47c4816 100644
--- a/components/policy/core/browser/managed_bookmarks_tracker.h
+++ b/components/bookmarks/managed/managed_bookmarks_tracker.h
@@ -2,14 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_POLICY_CORE_BROWSER_MANAGED_BOOKMARKS_TRACKER_H_
-#define COMPONENTS_POLICY_CORE_BROWSER_MANAGED_BOOKMARKS_TRACKER_H_
+#ifndef COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_
+#define COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_
#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/prefs/pref_change_registrar.h"
#include "base/strings/string16.h"
-#include "components/policy/policy_export.h"
class GURL;
class PrefService;
@@ -19,18 +18,16 @@ class ListValue;
}
namespace bookmarks {
+
class BookmarkModel;
class BookmarkNode;
class BookmarkPermanentNode;
-}
-
-namespace policy {
// Tracks either the Managed Bookmarks pref (set by policy) or the Supervised
// Bookmarks pref (set for a supervised user by their custodian) and makes the
// managed_node()/supervised_node() in the BookmarkModel follow the
// policy/custodian-defined bookmark tree.
-class POLICY_EXPORT ManagedBookmarksTracker {
+class ManagedBookmarksTracker {
public:
typedef base::Callback<std::string()> GetManagementDomainCallback;
@@ -91,7 +88,7 @@ class POLICY_EXPORT ManagedBookmarksTracker {
DISALLOW_COPY_AND_ASSIGN(ManagedBookmarksTracker);
};
-} // namespace policy
+} // namespace bookmarks
-#endif // COMPONENTS_POLICY_CORE_BROWSER_MANAGED_BOOKMARKS_TRACKER_H_
+#endif // COMPONENTS_BOOKMARKS_MANAGED_MANAGED_BOOKMARKS_TRACKER_H_
« no previous file with comments | « components/bookmarks/managed/BUILD.gn ('k') | components/bookmarks/managed/managed_bookmarks_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698