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

Unified Diff: chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc

Issue 294073007: [fsp] Let extensions decide about the file system id. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 7 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_system_provider/provider_function.cc
diff --git a/chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc b/chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc
index 53a3206a5db01e0d6f297b6dddf02d72ab4ed3b5..622d39c0f1ad14d96012a9dbc989d0f4669519cf 100644
--- a/chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc
+++ b/chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc
@@ -21,6 +21,7 @@ const char kNotFoundErrorName[] = "NotFoundError";
const char kSecurityErrorName[] = "SecurityError";
const char kEmptyNameErrorMessage[] = "Empty display name is not allowed.";
+const char kEmptyIdErrorMessage[] = "Empty file system Id s not allowed.";
const char kMountFailedErrorMessage[] = "Mounting the file system failed.";
const char kUnmountFailedErrorMessage[] = "Unmounting the file system failed.";
const char kResponseFailedErrorMessage[] =
@@ -104,9 +105,9 @@ bool FileSystemProviderInternalFunction::RunSync() {
}
bool FileSystemProviderInternalFunction::Parse() {
- int file_system_id = 0;
+ std::string file_system_id;
- if (!args_->GetInteger(0, &file_system_id) ||
+ if (!args_->GetString(0, &file_system_id) ||
!args_->GetInteger(1, &request_id_)) {
bad_message_ = true;
SendResponse(false);

Powered by Google App Engine
This is Rietveld 408576698