Commit 4bea1afb authored by satorux@chromium.org's avatar satorux@chromium.org

file_manager: Remove unused fields from DriveEntryProperties

"fileUrl" and "errorCode" are no longer in use.

BUG=257916
TEST=Files.app works as before
R=benwells@chromium.org, yoshiki@chromium.org

Review URL: https://codereview.chromium.org/23514043

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@221977 0039d316-1c4b-4281-b951-d872f2087c98
parent bd69f576
...@@ -85,7 +85,6 @@ bool FileBrowserPrivateGetDriveEntryPropertiesFunction::RunImpl() { ...@@ -85,7 +85,6 @@ bool FileBrowserPrivateGetDriveEntryPropertiesFunction::RunImpl() {
render_view_host(), profile(), file_url)); render_view_host(), profile(), file_url));
properties_.reset(new base::DictionaryValue); properties_.reset(new base::DictionaryValue);
properties_->SetString("fileUrl", file_url.spec());
// Start getting the file info. // Start getting the file info.
drive::FileSystemInterface* file_system = drive::FileSystemInterface* file_system =
...@@ -183,8 +182,6 @@ void FileBrowserPrivateGetDriveEntryPropertiesFunction::CacheStateReceived( ...@@ -183,8 +182,6 @@ void FileBrowserPrivateGetDriveEntryPropertiesFunction::CacheStateReceived(
void FileBrowserPrivateGetDriveEntryPropertiesFunction:: void FileBrowserPrivateGetDriveEntryPropertiesFunction::
CompleteGetFileProperties(drive::FileError error) { CompleteGetFileProperties(drive::FileError error) {
if (error != drive::FILE_ERROR_OK)
properties_->SetInteger("errorCode", error);
SetResult(properties_.release()); SetResult(properties_.release());
SendResponse(true); SendResponse(true);
} }
......
...@@ -71,11 +71,6 @@ ...@@ -71,11 +71,6 @@
"type": "object", "type": "object",
"description": "Drive file properties.", "description": "Drive file properties.",
"properties": { "properties": {
"fileUrl": {
"type": "string",
"optional": true,
"description": "the URL given for this file."
},
"thumbnailUrl": { "thumbnailUrl": {
"type": "string", "type": "string",
"optional": true, "optional": true,
...@@ -101,11 +96,6 @@ ...@@ -101,11 +96,6 @@
"optional": true, "optional": true,
"description": "True if the file is hosted on a Drive server instead of local." "description": "True if the file is hosted on a Drive server instead of local."
}, },
"errorCode": {
"type": "integer",
"optional": true,
"description": "The error code (from base::PlatformFileError) if fetching the properties for this file had an error."
},
"customIconUrl": { "customIconUrl": {
"type": "string", "type": "string",
"optional": true, "optional": true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment