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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc

Issue 23715003: Files.app: Rename the FileBrowserPrivateAPI's functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed the comments. Created 7 years, 4 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/private_api_mount.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc
index 9abd536a342cc5a7fb4746bddaa18c4a6b252d0b..5a715b24e9429008c2ac3f33a3ee3e3bcff3722e 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc
@@ -68,13 +68,13 @@ base::DictionaryValue* CreateDownloadsMountPointInfo() {
} // namespace
-AddMountFunction::AddMountFunction() {
+FileBrowserPrivateAddMountFunction::FileBrowserPrivateAddMountFunction() {
}
-AddMountFunction::~AddMountFunction() {
+FileBrowserPrivateAddMountFunction::~FileBrowserPrivateAddMountFunction() {
}
-bool AddMountFunction::RunImpl() {
+bool FileBrowserPrivateAddMountFunction::RunImpl() {
// The third argument is simply ignored.
if (args_->GetSize() != 2 && args_->GetSize() != 3) {
error_ = "Invalid argument count";
@@ -146,7 +146,7 @@ bool AddMountFunction::RunImpl() {
}
file_system->MarkCacheFileAsMounted(
drive::util::ExtractDrivePath(path),
- base::Bind(&AddMountFunction::OnMountedStateSet,
+ base::Bind(&FileBrowserPrivateAddMountFunction::OnMountedStateSet,
this, mount_type_str, display_name));
} else {
OnMountedStateSet(mount_type_str, display_name,
@@ -159,7 +159,7 @@ bool AddMountFunction::RunImpl() {
return true;
}
-void AddMountFunction::OnMountedStateSet(
+void FileBrowserPrivateAddMountFunction::OnMountedStateSet(
const std::string& mount_type,
const base::FilePath::StringType& file_name,
drive::FileError error,
@@ -181,13 +181,14 @@ void AddMountFunction::OnMountedStateSet(
file_name, DiskMountManager::MountTypeFromString(mount_type));
}
-RemoveMountFunction::RemoveMountFunction() {
+FileBrowserPrivateRemoveMountFunction::FileBrowserPrivateRemoveMountFunction() {
}
-RemoveMountFunction::~RemoveMountFunction() {
+FileBrowserPrivateRemoveMountFunction::
+ ~FileBrowserPrivateRemoveMountFunction() {
}
-bool RemoveMountFunction::RunImpl() {
+bool FileBrowserPrivateRemoveMountFunction::RunImpl() {
if (args_->GetSize() != 1) {
return false;
}
@@ -211,11 +212,12 @@ bool RemoveMountFunction::RunImpl() {
profile(),
file_paths,
file_manager::util::NEED_LOCAL_PATH_FOR_OPENING,
- base::Bind(&RemoveMountFunction::GetSelectedFileInfoResponse, this));
+ base::Bind(&FileBrowserPrivateRemoveMountFunction::
+ GetSelectedFileInfoResponse, this));
return true;
}
-void RemoveMountFunction::GetSelectedFileInfoResponse(
+void FileBrowserPrivateRemoveMountFunction::GetSelectedFileInfoResponse(
const std::vector<ui::SelectedFileInfo>& files) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
@@ -234,13 +236,15 @@ void RemoveMountFunction::GetSelectedFileInfoResponse(
SendResponse(true);
}
-GetMountPointsFunction::GetMountPointsFunction() {
+FileBrowserPrivateGetMountPointsFunction::
+ FileBrowserPrivateGetMountPointsFunction() {
}
-GetMountPointsFunction::~GetMountPointsFunction() {
+FileBrowserPrivateGetMountPointsFunction::
+ ~FileBrowserPrivateGetMountPointsFunction() {
}
-bool GetMountPointsFunction::RunImpl() {
+bool FileBrowserPrivateGetMountPointsFunction::RunImpl() {
if (args_->GetSize())
return false;

Powered by Google App Engine
This is Rietveld 408576698