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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_util.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
Index: chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
index f577e06bca96bb662d9e9f2552af18504e5171f2..0307a65d2035a00705056675da100b45d49f2186 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc
@@ -148,6 +148,10 @@ void GetSelectedFileInfoInternal(Profile* profile,
void ContinueGetSelectedFileInfo(Profile* profile,
scoped_ptr<GetSelectedFileInfoParams> params,
const base::FilePath& local_path) {
+ if (local_path.empty()) {
+ params->callback.Run(std::vector<ui::SelectedFileInfo>());
+ return;
+ }
const int index = params->selected_files.size();
const base::FilePath& file_path = params->file_paths[index];
params->selected_files.push_back(ui::SelectedFileInfo(file_path, local_path));

Powered by Google App Engine
This is Rietveld 408576698