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

Unified Diff: apps/launcher.cc

Issue 23739005: Replace direct use of DriveIntegrationServiceFactory with drive::util::GetFileSystemByProfile. (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/launcher.cc
diff --git a/apps/launcher.cc b/apps/launcher.cc
index 684379016a38c5a64b36d6d6864cc1326dcf1d42..933d37c46186934bcd0ee0911f96afb34c939b6b 100644
--- a/apps/launcher.cc
+++ b/apps/launcher.cc
@@ -33,7 +33,6 @@
#include "net/base/net_util.h"
#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/drive/drive_integration_service.h"
#include "chrome/browser/chromeos/drive/file_errors.h"
#include "chrome/browser/chromeos/drive/file_system_interface.h"
#include "chrome/browser/chromeos/drive/file_system_util.h"
@@ -194,14 +193,14 @@ class PlatformAppPathLauncher
void GetMimeTypeAndLaunchForDriveFile() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- drive::DriveIntegrationService* service =
- drive::DriveIntegrationServiceFactory::FindForProfile(profile_);
- if (!service) {
+ drive::FileSystemInterface* file_system =
+ drive::util::GetFileSystemByProfile(profile_);
+ if (!file_system) {
LaunchWithNoLaunchData();
return;
}
- service->file_system()->GetFileByPath(
+ file_system->GetFileByPath(
drive::util::ExtractDrivePath(file_path_),
base::Bind(&PlatformAppPathLauncher::OnGotDriveFile, this));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698