diff options
author | fukino <fukino@chromium.org> | 2015-09-01 03:00:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-01 10:00:51 +0000 |
commit | a64efe8210e6aaeb7c7a048aa07a2fb9942d955c (patch) | |
tree | 16810e03496bf4a2ef76d43637a1d20d0f6ecce4 /components/drive | |
parent | 129827760e5b2334c080368cad357d0ba9b1dc58 (diff) | |
download | chromium_src-a64efe8210e6aaeb7c7a048aa07a2fb9942d955c.zip chromium_src-a64efe8210e6aaeb7c7a048aa07a2fb9942d955c.tar.gz chromium_src-a64efe8210e6aaeb7c7a048aa07a2fb9942d955c.tar.bz2 |
Add visibility to AddNewDirectoryOptions.
This CL adds "visibility" property to AddNewDirectoryOptions, to pass visibility parameter from AddNewDirectory() to FilesInsertRequst.
BUG=518750
TEST=none
Review URL: https://codereview.chromium.org/1317283002
Cr-Commit-Position: refs/heads/master@{#346611}
Diffstat (limited to 'components/drive')
-rw-r--r-- | components/drive/service/drive_api_service.cc | 1 | ||||
-rw-r--r-- | components/drive/service/drive_service_interface.cc | 3 | ||||
-rw-r--r-- | components/drive/service/drive_service_interface.h | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/components/drive/service/drive_api_service.cc b/components/drive/service/drive_api_service.cc index 644079a..2f47fe6 100644 --- a/components/drive/service/drive_api_service.cc +++ b/components/drive/service/drive_api_service.cc @@ -530,6 +530,7 @@ CancelCallback DriveAPIService::AddNewDirectory( FilesInsertRequest* request = new FilesInsertRequest( sender_.get(), url_generator_, callback); + request->set_visibility(options.visibility); request->set_last_viewed_by_me_date(options.last_viewed_by_me_date); request->set_mime_type(kFolderMimeType); request->set_modified_date(options.modified_date); diff --git a/components/drive/service/drive_service_interface.cc b/components/drive/service/drive_service_interface.cc index 76c1f20..bd828a6 100644 --- a/components/drive/service/drive_service_interface.cc +++ b/components/drive/service/drive_service_interface.cc @@ -6,7 +6,8 @@ namespace drive { -AddNewDirectoryOptions::AddNewDirectoryOptions() { +AddNewDirectoryOptions::AddNewDirectoryOptions() + : visibility(google_apis::drive::FILE_VISIBILITY_DEFAULT) { } AddNewDirectoryOptions::~AddNewDirectoryOptions() { diff --git a/components/drive/service/drive_service_interface.h b/components/drive/service/drive_service_interface.h index 1c0dadd..31b90df 100644 --- a/components/drive/service/drive_service_interface.h +++ b/components/drive/service/drive_service_interface.h @@ -37,6 +37,9 @@ struct AddNewDirectoryOptions { AddNewDirectoryOptions(); ~AddNewDirectoryOptions(); + // visibility of the new directory. + google_apis::drive::FileVisibility visibility; + // modified_date of the directory. // Pass the null Time if you are not interested in setting this property. base::Time modified_date; |