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

Unified Diff: chrome/browser/chromeos/drive/drive_system_service.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/drive/drive_system_service.cc
diff --git a/chrome/browser/chromeos/drive/drive_system_service.cc b/chrome/browser/chromeos/drive/drive_system_service.cc
index 1d0f0393b289c19163a6b4a2e35f1a8066f54180..44f3c7cb5b3b3036f9151bcf8efbd8f5fed25961 100644
--- a/chrome/browser/chromeos/drive/drive_system_service.cc
+++ b/chrome/browser/chromeos/drive/drive_system_service.cc
@@ -417,7 +417,9 @@ DriveSystemServiceFactory::~DriveSystemServiceFactory() {
}
ProfileKeyedService* DriveSystemServiceFactory::BuildServiceInstanceFor(
- Profile* profile) const {
+ content::BrowserContext* context) const {
+ Profile* profile = static_cast<Profile*>(context);
+
DriveSystemService* service = NULL;
if (factory_for_test_.is_null())
service = new DriveSystemService(profile, NULL, base::FilePath(), NULL);

Powered by Google App Engine
This is Rietveld 408576698