diff options
author | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-20 01:51:53 +0000 |
---|---|---|
committer | satorux@chromium.org <satorux@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-20 01:51:53 +0000 |
commit | e6a376536b68c7601e2f6b814808582f5562a4e7 (patch) | |
tree | a2031bc7f3131b13a8eced90d0a95886a92b6c2b | |
parent | 141e64b54c11354f0e1edf6bc463904039cc07a8 (diff) | |
download | chromium_src-e6a376536b68c7601e2f6b814808582f5562a4e7.zip chromium_src-e6a376536b68c7601e2f6b814808582f5562a4e7.tar.gz chromium_src-e6a376536b68c7601e2f6b814808582f5562a4e7.tar.bz2 |
file_manager: Rename formatDevice to formatVolume
As this function is used to format a volume (a partition on a storage device),
rather than a device.
BUG=316526
TEST=none
R=benwells@chromium.org
Review URL: https://codereview.chromium.org/65503004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236095 0039d316-1c4b-4281-b951-d872f2087c98
4 files changed, 12 insertions, 12 deletions
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc index c655159..085d457 100644 --- a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.cc @@ -497,8 +497,8 @@ void FileBrowserPrivateValidatePathNameLengthFunction::OnFilePathLimitRetrieved( SendResponse(true); } -bool FileBrowserPrivateFormatDeviceFunction::RunImpl() { - using extensions::api::file_browser_private::FormatDevice::Params; +bool FileBrowserPrivateFormatVolumeFunction::RunImpl() { + using extensions::api::file_browser_private::FormatVolume::Params; const scoped_ptr<Params> params(Params::Create(*args_)); EXTENSION_FUNCTION_VALIDATE(params); diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h index b147db0..7bbfd43 100644 --- a/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_file_system.h @@ -149,16 +149,16 @@ class FileBrowserPrivateValidatePathNameLengthFunction virtual bool RunImpl() OVERRIDE; }; -// Implements the chrome.fileBrowserPrivate.formatDevice method. -// Formats Device given its mount path. -class FileBrowserPrivateFormatDeviceFunction +// Implements the chrome.fileBrowserPrivate.formatVolume method. +// Formats Volume given its mount path. +class FileBrowserPrivateFormatVolumeFunction : public LoggedAsyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.formatDevice", - FILEBROWSERPRIVATE_FORMATDEVICE) + DECLARE_EXTENSION_FUNCTION("fileBrowserPrivate.formatVolume", + FILEBROWSERPRIVATE_FORMATVOLUME) protected: - virtual ~FileBrowserPrivateFormatDeviceFunction() {} + virtual ~FileBrowserPrivateFormatVolumeFunction() {} // AsyncExtensionFunction overrides. virtual bool RunImpl() OVERRIDE; diff --git a/chrome/browser/extensions/extension_function_histogram_value.h b/chrome/browser/extensions/extension_function_histogram_value.h index 0e3d550..e1db466 100644 --- a/chrome/browser/extensions/extension_function_histogram_value.h +++ b/chrome/browser/extensions/extension_function_histogram_value.h @@ -249,7 +249,7 @@ enum HistogramValue { BROWSINGDATA_REMOVE, SERIAL_OPEN, FILESYSTEM_GETDISPLAYPATH, - FILEBROWSERPRIVATE_FORMATDEVICE, + FILEBROWSERPRIVATE_FORMATVOLUME, BOOKMARKS_GET, DELETED_MANAGEDMODEPRIVATE_GET, ALARMS_CLEAR, diff --git a/chrome/common/extensions/api/file_browser_private.json b/chrome/common/extensions/api/file_browser_private.json index 94974ce..b8bb111 100644 --- a/chrome/common/extensions/api/file_browser_private.json +++ b/chrome/common/extensions/api/file_browser_private.json @@ -740,13 +740,13 @@ ] }, { - "name": "formatDevice", - "description": "Formats a mounted device", + "name": "formatVolume", + "description": "Formats a mounted volume", "parameters": [ { "name": "mountPath", "type": "string", - "description": "Device's mount path." + "description": "Volume's mount path." } ] }, |