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/memory/ptr_util.h" | 13 #include "base/memory/ptr_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/values.h" | 15 #include "base/values.h" |
16 #include "components/bookmarks/browser/bookmark_model.h" | 16 #include "components/bookmarks/browser/bookmark_model.h" |
17 #include "components/bookmarks/browser/bookmark_node.h" | 17 #include "components/bookmarks/browser/bookmark_node.h" |
18 #include "components/bookmarks/common/bookmark_pref_names.h" | 18 #include "components/bookmarks/common/bookmark_pref_names.h" |
19 #include "components/prefs/pref_service.h" | 19 #include "components/prefs/pref_service.h" |
20 #include "grit/components_strings.h" | 20 #include "components/strings/grit/components_strings.h" |
21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
24 namespace bookmarks { | 24 namespace bookmarks { |
25 | 25 |
26 const char ManagedBookmarksTracker::kName[] = "name"; | 26 const char ManagedBookmarksTracker::kName[] = "name"; |
27 const char ManagedBookmarksTracker::kUrl[] = "url"; | 27 const char ManagedBookmarksTracker::kUrl[] = "url"; |
28 const char ManagedBookmarksTracker::kChildren[] = "children"; | 28 const char ManagedBookmarksTracker::kChildren[] = "children"; |
29 const char ManagedBookmarksTracker::kFolderName[] = "toplevel_name"; | 29 const char ManagedBookmarksTracker::kFolderName[] = "toplevel_name"; |
30 | 30 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 return false; | 207 return false; |
208 } | 208 } |
209 if (!*children) { | 209 if (!*children) { |
210 *url = GURL(spec); | 210 *url = GURL(spec); |
211 DCHECK(url->is_valid()); | 211 DCHECK(url->is_valid()); |
212 } | 212 } |
213 return true; | 213 return true; |
214 } | 214 } |
215 | 215 |
216 } // namespace policy | 216 } // namespace policy |
OLD | NEW |