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

Unified Diff: chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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/glue/bookmark_data_type_controller_unittest.cc
diff --git a/chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc b/chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc
index 3f3e27b5f1a6ad77265bdf8e687c01cb1a421121..04f4cff3fced2e24462a3d7ec548ce83e7d7acb6 100644
--- a/chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc
+++ b/chrome/browser/sync/glue/bookmark_data_type_controller_unittest.cc
@@ -54,18 +54,20 @@ class HistoryMock : public HistoryService {
virtual ~HistoryMock() {}
};
-ProfileKeyedService* BuildBookmarkModel(Profile* profile) {
+ProfileKeyedService* BuildBookmarkModel(content::BrowserContext* context) {
+ Profile* profile = static_cast<Profile*>(context);
BookmarkModel* bookmark_model = new BookmarkModel(profile);
bookmark_model->Load(profile->GetIOTaskRunner());
return bookmark_model;
}
-ProfileKeyedService* BuildBookmarkModelWithoutLoading(Profile* profile) {
- return new BookmarkModel(profile);
+ProfileKeyedService* BuildBookmarkModelWithoutLoading(
+ content::BrowserContext* profile) {
+ return new BookmarkModel(static_cast<Profile*>(profile));
}
-ProfileKeyedService* BuildHistoryService(Profile* profile) {
- return new HistoryMock(profile);
+ProfileKeyedService* BuildHistoryService(content::BrowserContext* profile) {
+ return new HistoryMock(static_cast<Profile*>(profile));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698