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

Unified Diff: chrome/browser/sync/profile_sync_components_factory_impl.cc

Issue 10825068: Removing instances of profile_->GetBookmarkModel() as part of converting BookmarkModel to a PKS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_components_factory_impl.cc
===================================================================
--- chrome/browser/sync/profile_sync_components_factory_impl.cc (revision 149222)
+++ chrome/browser/sync/profile_sync_components_factory_impl.cc (working copy)
@@ -4,6 +4,7 @@
#include "base/command_line.h"
#include "build/build_config.h"
+#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/extensions/app_notification_manager.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_system.h"
@@ -270,7 +271,7 @@
ProfileSyncService* profile_sync_service,
DataTypeErrorHandler* error_handler) {
BookmarkModel* bookmark_model =
- profile_sync_service->profile()->GetBookmarkModel();
+ BookmarkModelFactory::GetForProfile(profile_sync_service->profile());
syncer::UserShare* user_share = profile_sync_service->GetUserShare();
// TODO(akalin): We may want to propagate this switch up eventually.
#if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698