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

Unified Diff: chrome/browser/chromeos/extensions/file_manager_util.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/extensions/file_manager_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager_util.cc b/chrome/browser/chromeos/extensions/file_manager_util.cc
index a149aad6f30c92cb2c210637a5eebb62a41e1ca0..4763f4f07f32239f32f726594345b72219b18287 100644
--- a/chrome/browser/chromeos/extensions/file_manager_util.cc
+++ b/chrome/browser/chromeos/extensions/file_manager_util.cc
@@ -228,7 +228,7 @@ void ShowWarningMessageBox(Profile* profile, const FilePath& path) {
chrome::MESSAGE_BOX_TYPE_WARNING);
}
-// Called when a file on GData was found. Opens the file found at |file_path|
+// Called when a file on Drive was found. Opens the file found at |file_path|
// in a new tab with a URL computed based on the |file_type|
void OnGDataFileFound(Profile* profile,
const FilePath& file_path,
@@ -257,7 +257,7 @@ void OnGDataFileFound(Profile* profile,
}
}
-// Called when a crx file on GData was downloaded.
+// Called when a crx file on Drive was downloaded.
void OnCRXDownloadCallback(Browser* browser,
gdata::DriveFileError error,
const FilePath& file,
@@ -643,7 +643,7 @@ bool ExecuteBuiltinHandler(Browser* browser, const FilePath& path,
// Open the file once the file is found.
system_service->file_system()->GetEntryInfoByPath(
- gdata::util::ExtractGDataPath(path),
+ gdata::util::ExtractDrivePath(path),
base::Bind(&OnGDataFileFound, profile, path, gdata::REGULAR_FILE));
return true;
}
@@ -653,14 +653,14 @@ bool ExecuteBuiltinHandler(Browser* browser, const FilePath& path,
if (IsSupportedGDocsExtension(file_extension.data())) {
if (gdata::util::GetSpecialRemoteRootPath().IsParent(path)) {
- // The file is on Google Docs. Get the Docs from the GData service.
+ // The file is on Google Docs. Get the Docs from the Drive service.
gdata::DriveSystemService* system_service =
gdata::DriveSystemServiceFactory::GetForProfile(profile);
if (!system_service)
return false;
system_service->file_system()->GetEntryInfoByPath(
- gdata::util::ExtractGDataPath(path),
+ gdata::util::ExtractDrivePath(path),
base::Bind(&OnGDataFileFound, profile, path,
gdata::HOSTED_DOCUMENT));
} else {
@@ -706,13 +706,13 @@ bool ExecuteBuiltinHandler(Browser* browser, const FilePath& path,
}
if (IsCRXFile(file_extension.data())) {
- if (gdata::util::IsUnderGDataMountPoint(path)) {
+ if (gdata::util::IsUnderDriveMountPoint(path)) {
gdata::DriveSystemService* system_service =
gdata::DriveSystemServiceFactory::GetForProfile(profile);
if (!system_service)
return false;
system_service->file_system()->GetFileByPath(
- gdata::util::ExtractGDataPath(path),
+ gdata::util::ExtractDrivePath(path),
base::Bind(&OnCRXDownloadCallback, browser),
gdata::GetContentCallback());
} else {
« no previous file with comments | « chrome/browser/chromeos/extensions/file_handler_util.cc ('k') | chrome/browser/chromeos/gdata/drive_download_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698