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

Unified Diff: chrome/browser/chromeos/drive/download_handler.cc

Issue 23523022: Replace GetForProfile by Get{FileSystem,DriveAppRegistry,DriveService)ByProfile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/download_handler.cc
diff --git a/chrome/browser/chromeos/drive/download_handler.cc b/chrome/browser/chromeos/drive/download_handler.cc
index 2dd6c0fd723046bc9598a7d88d94cc53f39603d7..9cc3738d251627d50f2fb8054e131d351e1f1c85 100644
--- a/chrome/browser/chromeos/drive/download_handler.cc
+++ b/chrome/browser/chromeos/drive/download_handler.cc
@@ -107,6 +107,8 @@ DownloadHandler::~DownloadHandler() {
DownloadHandler* DownloadHandler::GetForProfile(Profile* profile) {
DriveIntegrationService* integration_service =
DriveIntegrationServiceFactory::FindForProfile(profile);
+ // TODO(hidehiko): FindForProfile will return the instance even if Drive is
+ // disabled. Needs to check the state. crbug.com/284972.
return integration_service ? integration_service->download_handler() : NULL;
}
« no previous file with comments | « no previous file | chrome/browser/chromeos/drive/file_system_util.h » ('j') | chrome/browser/chromeos/drive/file_system_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698