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

Side by Side Diff: components/bookmarks/core/browser/bookmark_model.cc

Issue 253753005: Move bookmarks' production code to components/bookmarks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@367656
Patch Set: Fix compilation for win_chromium_x64_rel Created 6 years, 7 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
OLDNEW
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/bookmarks/bookmark_model.h" 5 #include "components/bookmarks/core/browser/bookmark_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/i18n/string_compare.h" 12 #include "base/i18n/string_compare.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
15 #include "chrome/browser/bookmarks/bookmark_expanded_state_tracker.h" 15 #include "components/bookmarks/core/browser/bookmark_expanded_state_tracker.h"
16 #include "chrome/browser/bookmarks/bookmark_index.h" 16 #include "components/bookmarks/core/browser/bookmark_index.h"
17 #include "chrome/browser/bookmarks/bookmark_node_data.h"
18 #include "chrome/browser/bookmarks/bookmark_storage.h"
19 #include "chrome/browser/bookmarks/bookmark_utils.h"
20 #include "components/bookmarks/core/browser/bookmark_match.h" 17 #include "components/bookmarks/core/browser/bookmark_match.h"
21 #include "components/bookmarks/core/browser/bookmark_model_observer.h" 18 #include "components/bookmarks/core/browser/bookmark_model_observer.h"
19 #include "components/bookmarks/core/browser/bookmark_node_data.h"
20 #include "components/bookmarks/core/browser/bookmark_storage.h"
21 #include "components/bookmarks/core/browser/bookmark_utils.h"
22 #include "components/favicon_base/favicon_types.h" 22 #include "components/favicon_base/favicon_types.h"
23 #include "grit/component_strings.h" 23 #include "grit/component_strings.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 #include "ui/gfx/favicon_size.h" 25 #include "ui/gfx/favicon_size.h"
26 26
27 using base::Time; 27 using base::Time;
28 28
29 namespace { 29 namespace {
30 30
31 // Helper to get a mutable bookmark node. 31 // Helper to get a mutable bookmark node.
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 CreatePermanentNode(BookmarkNode::OTHER_NODE); 928 CreatePermanentNode(BookmarkNode::OTHER_NODE);
929 BookmarkPermanentNode* mobile_node = 929 BookmarkPermanentNode* mobile_node =
930 CreatePermanentNode(BookmarkNode::MOBILE); 930 CreatePermanentNode(BookmarkNode::MOBILE);
931 return scoped_ptr<BookmarkLoadDetails>(new BookmarkLoadDetails( 931 return scoped_ptr<BookmarkLoadDetails>(new BookmarkLoadDetails(
932 bb_node, 932 bb_node,
933 other_node, 933 other_node,
934 mobile_node, 934 mobile_node,
935 new BookmarkIndex(client_, index_urls_, accept_languages), 935 new BookmarkIndex(client_, index_urls_, accept_languages),
936 next_node_id_)); 936 next_node_id_));
937 } 937 }
OLDNEW
« no previous file with comments | « components/bookmarks/core/browser/bookmark_model.h ('k') | components/bookmarks/core/browser/bookmark_node_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698