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

Unified Diff: chrome/browser/chromeos/gdata/drive_download_observer.cc

Issue 10905142: Rename GData to Drive in drive_file_system_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/gdata/drive_download_observer.cc
diff --git a/chrome/browser/chromeos/gdata/drive_download_observer.cc b/chrome/browser/chromeos/gdata/drive_download_observer.cc
index 1d8347525732cfc0e61f72105e3f83b1012a2557..7f7e7e67eafd1782555e3964bf1db26209a7885b 100644
--- a/chrome/browser/chromeos/gdata/drive_download_observer.cc
+++ b/chrome/browser/chromeos/gdata/drive_download_observer.cc
@@ -175,7 +175,7 @@ void OnAuthenticate(Profile* profile,
if (error == HTTP_SUCCESS) {
const FilePath drive_dir_path =
- util::ExtractGDataPath(drive_path.DirName());
+ util::ExtractDrivePath(drive_path.DirName());
// Ensure the directory exists. This also forces DriveFileSystem to
// initialize DriveRootDirectory.
GetSystemService(profile)->file_system()->GetEntryInfoByPath(
@@ -227,7 +227,7 @@ void DriveDownloadObserver::SubstituteDriveDownloadPath(Profile* profile,
SetDownloadParams(drive_path, download);
- if (util::IsUnderGDataMountPoint(drive_path)) {
+ if (util::IsUnderDriveMountPoint(drive_path)) {
// Can't access drive if we're not authenticated.
// We set off a chain of callbacks as follows:
// DriveServiceInterface::Authenticate
@@ -249,7 +249,7 @@ void DriveDownloadObserver::SetDownloadParams(const FilePath& drive_path,
if (!download)
return;
- if (util::IsUnderGDataMountPoint(drive_path)) {
+ if (util::IsUnderDriveMountPoint(drive_path)) {
download->SetUserData(&kGDataPathKey,
new DriveUserData(drive_path));
download->SetDisplayName(drive_path.BaseName());
@@ -271,7 +271,7 @@ FilePath DriveDownloadObserver::GetDrivePath(DownloadItem* download) {
// If data is NULL, we've somehow lost the gdata path selected by the file
// picker.
DCHECK(data);
- return data ? util::ExtractGDataPath(data->file_path()) : FilePath();
+ return data ? util::ExtractDrivePath(data->file_path()) : FilePath();
}
// static
« no previous file with comments | « chrome/browser/chromeos/extensions/file_manager_util.cc ('k') | chrome/browser/chromeos/gdata/drive_file_system_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698