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

Unified Diff: chrome/browser/extensions/extension_file_browser_private_api.cc

Issue 7599015: Revert 94812 - Formatting feature initial commit for ChromeOS Tree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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/extensions/extension_file_browser_private_api.cc
===================================================================
--- chrome/browser/extensions/extension_file_browser_private_api.cc (revision 95908)
+++ chrome/browser/extensions/extension_file_browser_private_api.cc (working copy)
@@ -1212,7 +1212,7 @@
std::string mount_path;
if (!args_->GetString(0, &mount_path)) {
- return false;
+ return false;
}
UrlList file_paths;
@@ -1244,7 +1244,6 @@
SendResponse(true);
}
-
GetMountPointsFunction::GetMountPointsFunction() {
}
@@ -1258,7 +1257,7 @@
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 =
@@ -1271,37 +1270,10 @@
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;
-}
-
GetVolumeMetadataFunction::GetVolumeMetadataFunction() {
}
@@ -1453,8 +1425,6 @@
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);

Powered by Google App Engine
This is Rietveld 408576698