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

Side by Side Diff: chrome/browser/bookmarks/bookmark_codec.cc

Issue 1868: Moves bookmark related classes into bookmarks directory. There are no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 3 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 | Annotate | Revision Log
Property Changes:
Added: svn:mergeinfo
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_codec.h ('k') | chrome/browser/bookmarks/bookmark_drag_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698