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

Unified Diff: apps/app_restore_service_factory.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
« no previous file with comments | « apps/app_restore_service_factory.h ('k') | apps/shortcut_manager_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_restore_service_factory.cc
diff --git a/apps/app_restore_service_factory.cc b/apps/app_restore_service_factory.cc
index 22ebe32304784bc7573edf1a3d05a1b938242cda..71dd80b5820aa5e870c181b4c5cca78099f5ae25 100644
--- a/apps/app_restore_service_factory.cc
+++ b/apps/app_restore_service_factory.cc
@@ -5,6 +5,7 @@
#include "apps/app_restore_service_factory.h"
#include "apps/app_restore_service.h"
+#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_dependency_manager.h"
namespace apps {
@@ -35,8 +36,8 @@ AppRestoreServiceFactory::~AppRestoreServiceFactory() {
}
ProfileKeyedService* AppRestoreServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
- return new AppRestoreService(profile);
+ content::BrowserContext* profile) const {
+ return new AppRestoreService(static_cast<Profile*>(profile));
}
bool AppRestoreServiceFactory::ServiceIsCreatedWithProfile() const {
« no previous file with comments | « apps/app_restore_service_factory.h ('k') | apps/shortcut_manager_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698