| Index: chrome/browser/extensions/extension_file_browser_private_api.cc
|
| diff --git a/chrome/browser/extensions/extension_file_browser_private_api.cc b/chrome/browser/extensions/extension_file_browser_private_api.cc
|
| index 7ef2d1b653618394cc901cbbb2af732c22ac72cd..cc69d18306fc9f68c6f09b3bc982691542be6c28 100644
|
| --- a/chrome/browser/extensions/extension_file_browser_private_api.cc
|
| +++ b/chrome/browser/extensions/extension_file_browser_private_api.cc
|
| @@ -1212,7 +1212,7 @@ bool RemoveMountFunction::RunImpl() {
|
|
|
| std::string mount_path;
|
| if (!args_->GetString(0, &mount_path)) {
|
| - return false;
|
| + return false;
|
| }
|
|
|
| #ifdef OS_CHROMEOS
|
| @@ -1224,6 +1224,7 @@ bool RemoveMountFunction::RunImpl() {
|
| return true;
|
| }
|
|
|
| +
|
| GetMountPointsFunction::GetMountPointsFunction() {
|
| }
|
|
|
| @@ -1237,7 +1238,7 @@ bool GetMountPointsFunction::RunImpl() {
|
| base::ListValue *mounts = new base::ListValue();
|
| result_.reset(mounts);
|
|
|
| - #ifdef OS_CHROMEOS
|
| +#ifdef OS_CHROMEOS
|
| chromeos::MountLibrary *mount_lib =
|
| chromeos::CrosLibrary::Get()->GetMountLibrary();
|
| chromeos::MountLibrary::MountPointMap mount_points =
|
| @@ -1250,6 +1251,33 @@ bool GetMountPointsFunction::RunImpl() {
|
| mounts->Append(MountPointToValue(profile_, it->second));
|
| }
|
| #endif
|
| +
|
| + SendResponse(true);
|
| + return true;
|
| +}
|
| +
|
| +FormatDeviceFunction::FormatDeviceFunction() {
|
| +}
|
| +
|
| +FormatDeviceFunction::~FormatDeviceFunction() {
|
| +}
|
| +
|
| +bool FormatDeviceFunction::RunImpl() {
|
| + if (args_->GetSize() != 1) {
|
| + return false;
|
| + }
|
| +
|
| + std::string volume_mount_path;
|
| + if (!args_->GetString(0, &volume_mount_path)) {
|
| + NOTREACHED();
|
| + return false;
|
| + }
|
| +
|
| +#ifdef OS_CHROMEOS
|
| + chromeos::CrosLibrary::Get()->GetMountLibrary()->FormatMountedDevice(
|
| + volume_mount_path.c_str());
|
| +#endif
|
| +
|
| SendResponse(true);
|
| return true;
|
| }
|
| @@ -1405,6 +1433,8 @@ bool FileDialogStringsFunction::RunImpl() {
|
| SET_STRING(IDS_FILE_BROWSER, CONFIRM_DELETE_ONE);
|
| SET_STRING(IDS_FILE_BROWSER, CONFIRM_DELETE_SOME);
|
|
|
| + SET_STRING(IDS_FILE_BROWSER, FORMATTING_WARNING);
|
| +
|
| SET_STRING(IDS_FILE_BROWSER, SELECT_FOLDER_TITLE);
|
| SET_STRING(IDS_FILE_BROWSER, SELECT_OPEN_FILE_TITLE);
|
| SET_STRING(IDS_FILE_BROWSER, SELECT_OPEN_MULTI_FILE_TITLE);
|
|
|