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

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

Powered by Google App Engine
This is Rietveld 408576698