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

Unified Diff: chrome/browser/android/bookmarks/managed_bookmarks_shim.cc

Issue 319543003: Create the managed_node at the ChromeBookmarkClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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 | « no previous file | chrome/browser/bookmarks/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/bookmarks/managed_bookmarks_shim.cc
diff --git a/chrome/browser/android/bookmarks/managed_bookmarks_shim.cc b/chrome/browser/android/bookmarks/managed_bookmarks_shim.cc
index 644fd2dbd2370b6082277cbe8bd0b07e72c679f9..c2b81054108ed8a2b6a674a529efda93d6ef950b 100644
--- a/chrome/browser/android/bookmarks/managed_bookmarks_shim.cc
+++ b/chrome/browser/android/bookmarks/managed_bookmarks_shim.cc
@@ -8,15 +8,13 @@
#include "base/bind_helpers.h"
#include "base/prefs/pref_service.h"
#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/policy/managed_bookmarks_policy_handler.h"
#include "chrome/common/pref_names.h"
#include "components/bookmarks/browser/bookmark_model.h"
+#include "components/policy/core/browser/managed_bookmarks_tracker.h"
#include "google_apis/gaia/gaia_auth_util.h"
#include "grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
-using policy::ManagedBookmarksPolicyHandler;
-
ManagedBookmarksShim::ManagedBookmarksShim(PrefService* prefs)
: prefs_(prefs) {
registrar_.Init(prefs_);
@@ -94,8 +92,8 @@ void ManagedBookmarksShim::Reload() {
base::string16 name;
std::string url;
- if (!dict->GetString(ManagedBookmarksPolicyHandler::kName, &name) ||
- !dict->GetString(ManagedBookmarksPolicyHandler::kUrl, &url)) {
+ if (!dict->GetString(policy::ManagedBookmarksTracker::kName, &name) ||
+ !dict->GetString(policy::ManagedBookmarksTracker::kUrl, &url)) {
NOTREACHED();
continue;
}
« no previous file with comments | « no previous file | chrome/browser/bookmarks/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698