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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_dialog.cc

Issue 557223003: Files.app: Remove getDriveFiles function from the private API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_drive.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/file_manager/private_api_dialog.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_dialog.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_dialog.cc
index 9c105ec1b37af32677db090c607e0f0e8ba3f36a..45ab3c0aa02de414a21a412b761ac82d7e6e5198 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_dialog.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_dialog.cc
@@ -98,6 +98,11 @@ bool FileManagerPrivateSelectFilesFunction::RunAsync() {
void FileManagerPrivateSelectFilesFunction::GetSelectedFileInfoResponse(
const std::vector<ui::SelectedFileInfo>& files) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ if (files.empty()) {
+ SendResponse(false);
+ return;
+ }
+
SelectFileDialogExtension::OnMultiFilesSelected(GetFileDialogRoutingID(this),
files);
SendResponse(true);
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/file_manager/private_api_drive.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698