Index: chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc |
diff --git a/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc b/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc |
index 8863736d007671bb937f4226fead0ffa252250d6..2a05e2cd99199b9837b42291a8c6ae3a35d30d6f 100644 |
--- a/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc |
+++ b/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc |
@@ -51,15 +51,15 @@ bool FileSystemProviderMountFunction::RunImpl() { |
chromeos::file_system_provider::Service::Get(GetProfile()); |
DCHECK(service); |
- const std::string file_system_id = |
+ int file_system_id = |
service->RegisterFileSystem(extension_id(), params->display_name); |
// If the |file_system_id| is empty, then it means that registering the file |
satorux1
2014/03/26 07:58:45
zero
mtomasz
2014/03/26 09:30:15
Done.
|
// system failed. |
// TODO(mtomasz): Pass more detailed errors, rather than just a bool. |
- if (file_system_id.empty()) { |
+ if (!file_system_id) { |
base::ListValue* result = new base::ListValue(); |
- result->Append(new base::StringValue("")); |
+ result->Append(new base::FundamentalValue(0)); |
result->Append( |
CreateError(kSecurityErrorName, kRegisteringFailedErrorMessage)); |
SetResult(result); |
@@ -67,7 +67,7 @@ bool FileSystemProviderMountFunction::RunImpl() { |
} |
base::ListValue* result = new base::ListValue(); |
- result->Append(new base::StringValue(file_system_id)); |
+ result->Append(new base::FundamentalValue(file_system_id)); |
// Don't append an error on success. |
SetResult(result); |