| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h" | 5 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_helpers.h" |
| 6 | 6 |
| 7 #include <math.h> // For floor() | 7 #include <math.h> // For floor() |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" | 12 #include "chrome/browser/bookmarks/chrome_bookmark_client.h" |
| 13 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h" | 13 #include "chrome/browser/extensions/api/bookmarks/bookmark_api_constants.h" |
| 14 #include "chrome/common/extensions/api/bookmarks.h" | 14 #include "chrome/common/extensions/api/bookmarks.h" |
| 15 #include "components/bookmarks/browser/bookmark_model.h" | 15 #include "components/bookmarks/browser/bookmark_model.h" |
| 16 #include "components/bookmarks/browser/bookmark_utils.h" | 16 #include "components/bookmarks/browser/bookmark_utils.h" |
| 17 | 17 |
| 18 using bookmarks::BookmarkModel; | 18 using bookmarks::BookmarkModel; |
| 19 using bookmarks::BookmarkNode; |
| 19 | 20 |
| 20 namespace extensions { | 21 namespace extensions { |
| 21 | 22 |
| 22 namespace keys = bookmark_api_constants; | 23 namespace keys = bookmark_api_constants; |
| 23 using api::bookmarks::BookmarkTreeNode; | 24 using api::bookmarks::BookmarkTreeNode; |
| 24 | 25 |
| 25 namespace bookmark_api_helpers { | 26 namespace bookmark_api_helpers { |
| 26 | 27 |
| 27 namespace { | 28 namespace { |
| 28 | 29 |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 154 |
| 154 if (node.is_folder()) { | 155 if (node.is_folder()) { |
| 155 for (int i = 0; i < node.child_count(); ++i) { | 156 for (int i = 0; i < node.child_count(); ++i) { |
| 156 GetMetaInfo(*(node.GetChild(i)), id_to_meta_info_map); | 157 GetMetaInfo(*(node.GetChild(i)), id_to_meta_info_map); |
| 157 } | 158 } |
| 158 } | 159 } |
| 159 } | 160 } |
| 160 | 161 |
| 161 } // namespace bookmark_api_helpers | 162 } // namespace bookmark_api_helpers |
| 162 } // namespace extensions | 163 } // namespace extensions |
| OLD | NEW |