| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/bookmark_codec.h" | 5 #include "chrome/browser/bookmarks/bookmark_codec.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/bookmark_bar_model.h" | 9 #include "chrome/browser/bookmarks/bookmark_bar_model.h" |
| 10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
| 11 | 11 |
| 12 #include "generated_resources.h" | 12 #include "generated_resources.h" |
| 13 | 13 |
| 14 // Key names. | 14 // Key names. |
| 15 static const wchar_t* kRootsKey = L"roots"; | 15 static const wchar_t* kRootsKey = L"roots"; |
| 16 static const wchar_t* kRootFolderNameKey = L"bookmark_bar"; | 16 static const wchar_t* kRootFolderNameKey = L"bookmark_bar"; |
| 17 static const wchar_t* kOtherBookmarFolderNameKey = L"other"; | 17 static const wchar_t* kOtherBookmarFolderNameKey = L"other"; |
| 18 static const wchar_t* kVersionKey = L"version"; | 18 static const wchar_t* kVersionKey = L"version"; |
| 19 static const wchar_t* kTypeKey = L"type"; | 19 static const wchar_t* kTypeKey = L"type"; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 if (!DecodeChildren(model, *static_cast<ListValue*>(child_values), node)) | 186 if (!DecodeChildren(model, *static_cast<ListValue*>(child_values), node)) |
| 187 return false; | 187 return false; |
| 188 } | 188 } |
| 189 | 189 |
| 190 node->SetTitle(title); | 190 node->SetTitle(title); |
| 191 node->date_added_ = | 191 node->date_added_ = |
| 192 Time::FromInternalValue(StringToInt64(date_added_string)); | 192 Time::FromInternalValue(StringToInt64(date_added_string)); |
| 193 return true; | 193 return true; |
| 194 } | 194 } |
| 195 | 195 |
| OLD | NEW |