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 "components/bookmarks/managed/managed_bookmarks_tracker.h" | 5 #include "components/bookmarks/managed/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/logging.h" | 12 #include "base/logging.h" |
13 #include "base/prefs/pref_service.h" | |
14 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
15 #include "base/values.h" | 14 #include "base/values.h" |
16 #include "components/bookmarks/browser/bookmark_model.h" | 15 #include "components/bookmarks/browser/bookmark_model.h" |
17 #include "components/bookmarks/browser/bookmark_node.h" | 16 #include "components/bookmarks/browser/bookmark_node.h" |
18 #include "components/bookmarks/common/bookmark_pref_names.h" | 17 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 18 #include "components/prefs/pref_service.h" |
19 #include "grit/components_strings.h" | 19 #include "grit/components_strings.h" |
20 #include "ui/base/l10n/l10n_util.h" | 20 #include "ui/base/l10n/l10n_util.h" |
21 #include "url/gurl.h" | 21 #include "url/gurl.h" |
22 | 22 |
23 namespace bookmarks { | 23 namespace bookmarks { |
24 | 24 |
25 const char ManagedBookmarksTracker::kName[] = "name"; | 25 const char ManagedBookmarksTracker::kName[] = "name"; |
26 const char ManagedBookmarksTracker::kUrl[] = "url"; | 26 const char ManagedBookmarksTracker::kUrl[] = "url"; |
27 const char ManagedBookmarksTracker::kChildren[] = "children"; | 27 const char ManagedBookmarksTracker::kChildren[] = "children"; |
28 | 28 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 return false; | 200 return false; |
201 } | 201 } |
202 if (!*children) { | 202 if (!*children) { |
203 *url = GURL(spec); | 203 *url = GURL(spec); |
204 DCHECK(url->is_valid()); | 204 DCHECK(url->is_valid()); |
205 } | 205 } |
206 return true; | 206 return true; |
207 } | 207 } |
208 | 208 |
209 } // namespace policy | 209 } // namespace policy |
OLD | NEW |