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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/file_browser_private_api_factory.cc

Issue 141473004: Random cleanup for c/b/cros/extensions/file_manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 fd410137f98bc1880fe2094fa1e48edce6e2610a..a7bfc89512b3c519e6e4d256fab638945913e0f6 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
@@ -41,8 +41,8 @@ FileBrowserPrivateAPIFactory::~FileBrowserPrivateAPIFactory() {
BrowserContextKeyedService*
FileBrowserPrivateAPIFactory::BuildServiceInstanceFor(
- content::BrowserContext* profile) const {
- return new FileBrowserPrivateAPI(static_cast<Profile*>(profile));
+ content::BrowserContext* context) const {
+ return new FileBrowserPrivateAPI(Profile::FromBrowserContext(context));
}
content::BrowserContext* FileBrowserPrivateAPIFactory::GetBrowserContextToUse(

Powered by Google App Engine
This is Rietveld 408576698