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

Unified Diff: chrome/browser/chromeos/file_system_provider/service_factory.cc

Issue 1165913002: [Cleanup] Used scoped pointers in KeyedServiceFactory's SetTestingFactory functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Finish renaming profile -> context Created 5 years, 6 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/file_system_provider/service_factory.cc
diff --git a/chrome/browser/chromeos/file_system_provider/service_factory.cc b/chrome/browser/chromeos/file_system_provider/service_factory.cc
index 7322376bc2d0855cb5427549387535f6d76ac72e..b54a11e1c909e73696e1a7eef23b5ae6fb6a5cba 100644
--- a/chrome/browser/chromeos/file_system_provider/service_factory.cc
+++ b/chrome/browser/chromeos/file_system_provider/service_factory.cc
@@ -42,9 +42,8 @@ ServiceFactory::~ServiceFactory() {}
KeyedService* ServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* profile) const {
- return new Service(
- Profile::FromBrowserContext(profile),
- extensions::ExtensionRegistry::Get(Profile::FromBrowserContext(profile)));
+ return new Service(Profile::FromBrowserContext(profile),
+ extensions::ExtensionRegistry::Get(profile));
}
bool ServiceFactory::ServiceIsCreatedWithBrowserContext() const { return true; }

Powered by Google App Engine
This is Rietveld 408576698