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

Side by Side Diff: chrome/browser/bookmarks/chrome_bookmark_client.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 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 "chrome/browser/bookmarks/chrome_bookmark_client.h" 5 #include "chrome/browser/bookmarks/chrome_bookmark_client.h"
6 6
7 #include "chrome/browser/bookmarks/bookmark_model.h"
8 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/favicon/favicon_changed_details.h" 8 #include "chrome/browser/favicon/favicon_changed_details.h"
10 #include "chrome/browser/favicon/favicon_service.h" 9 #include "chrome/browser/favicon/favicon_service.h"
11 #include "chrome/browser/favicon/favicon_service_factory.h" 10 #include "chrome/browser/favicon/favicon_service_factory.h"
12 #include "chrome/browser/history/history_service.h" 11 #include "chrome/browser/history/history_service.h"
13 #include "chrome/browser/history/history_service_factory.h" 12 #include "chrome/browser/history/history_service_factory.h"
14 #include "chrome/browser/history/url_database.h" 13 #include "chrome/browser/history/url_database.h"
15 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "components/bookmarks/core/browser/bookmark_model.h"
16 #include "content/public/browser/notification_details.h" 16 #include "content/public/browser/notification_details.h"
17 #include "content/public/browser/notification_source.h" 17 #include "content/public/browser/notification_source.h"
18 #include "content/public/browser/user_metrics.h" 18 #include "content/public/browser/user_metrics.h"
19 19
20 ChromeBookmarkClient::ChromeBookmarkClient(Profile* profile, bool index_urls) 20 ChromeBookmarkClient::ChromeBookmarkClient(Profile* profile, bool index_urls)
21 : profile_(profile), 21 : profile_(profile),
22 model_(new BookmarkModel(this, index_urls)) { 22 model_(new BookmarkModel(this, index_urls)) {
23 // Listen for changes to favicons so that we can update the favicon of the 23 // Listen for changes to favicons so that we can update the favicon of the
24 // node appropriately. 24 // node appropriately.
25 registrar_.Add(this, 25 registrar_.Add(this,
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 default: 105 default:
106 NOTREACHED(); 106 NOTREACHED();
107 break; 107 break;
108 } 108 }
109 } 109 }
110 110
111 void ChromeBookmarkClient::Shutdown() { 111 void ChromeBookmarkClient::Shutdown() {
112 model_->Shutdown(); 112 model_->Shutdown();
113 } 113 }
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils_unittest.cc ('k') | chrome/browser/bookmarks/scoped_group_bookmark_actions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698