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

Side by Side Diff: components/policy/core/browser/managed_bookmarks_tracker.cc

Issue 865163003: bookmarks: Move BookmarkNode into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enhanced_bookmarks fix Created 5 years, 10 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
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 "components/policy/core/browser/managed_bookmarks_tracker.h" 5 #include "components/policy/core/browser/managed_bookmarks_tracker.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/values.h" 14 #include "base/values.h"
15 #include "components/bookmarks/browser/bookmark_model.h" 15 #include "components/bookmarks/browser/bookmark_model.h"
16 #include "components/bookmarks/browser/bookmark_node.h" 16 #include "components/bookmarks/browser/bookmark_node.h"
17 #include "components/bookmarks/common/bookmark_pref_names.h" 17 #include "components/bookmarks/common/bookmark_pref_names.h"
18 #include "grit/components_strings.h" 18 #include "grit/components_strings.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "url/gurl.h" 20 #include "url/gurl.h"
21 21
22 using bookmarks::BookmarkModel; 22 using bookmarks::BookmarkModel;
23 using bookmarks::BookmarkNode;
24 using bookmarks::BookmarkPermanentNode;
23 25
24 namespace policy { 26 namespace policy {
25 27
26 const char ManagedBookmarksTracker::kName[] = "name"; 28 const char ManagedBookmarksTracker::kName[] = "name";
27 const char ManagedBookmarksTracker::kUrl[] = "url"; 29 const char ManagedBookmarksTracker::kUrl[] = "url";
28 const char ManagedBookmarksTracker::kChildren[] = "children"; 30 const char ManagedBookmarksTracker::kChildren[] = "children";
29 31
30 ManagedBookmarksTracker::ManagedBookmarksTracker( 32 ManagedBookmarksTracker::ManagedBookmarksTracker(
31 BookmarkModel* model, 33 BookmarkModel* model,
32 PrefService* prefs, 34 PrefService* prefs,
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // Should never happen after policy validation. 178 // Should never happen after policy validation.
177 NOTREACHED(); 179 NOTREACHED();
178 return false; 180 return false;
179 } 181 }
180 if (!*children) 182 if (!*children)
181 *url = GURL(spec); 183 *url = GURL(spec);
182 return true; 184 return true;
183 } 185 }
184 186
185 } // namespace policy 187 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698