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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_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
Index: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc b/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc
index 9436d240e5dd2cc1daf5ec5b4f1ab72d6d421fbc..992c03499eb1c7229b163f0b8324f2750abf9401 100644
--- a/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc
@@ -34,9 +34,9 @@ FileBrowserPrivateAPIFactory::FileBrowserPrivateAPIFactory()
FileBrowserPrivateAPIFactory::~FileBrowserPrivateAPIFactory() {
}
-ProfileKeyedService*
-FileBrowserPrivateAPIFactory::BuildServiceInstanceFor(Profile* profile) const {
- return new FileBrowserPrivateAPI(profile);
+ProfileKeyedService* FileBrowserPrivateAPIFactory::BuildServiceInstanceFor(
+ content::BrowserContext* profile) const {
+ return new FileBrowserPrivateAPI(static_cast<Profile*>(profile));
}
bool FileBrowserPrivateAPIFactory::ServiceHasOwnInstanceInIncognito() const {

Powered by Google App Engine
This is Rietveld 408576698