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

Unified Diff: chrome/browser/extensions/api/file_system/file_system_api.cc

Issue 1609923002: Fix remaining incompatibilities between scoped_ptr and unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/extensions/api/file_system/file_system_api.cc
diff --git a/chrome/browser/extensions/api/file_system/file_system_api.cc b/chrome/browser/extensions/api/file_system/file_system_api.cc
index b997ee13cf3e2eab4c48cf56a058d581d4f37b5d..a656000415416e0c2bf98f7d3964dfd9c6006129 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
@@ -1063,7 +1063,7 @@ bool FileSystemChooseEntryFunction::RunAsync() {
file_system::ChooseEntryOptions* options = params->options.get();
if (options) {
- multiple_ = options->accepts_multiple;
+ multiple_ = !!options->accepts_multiple;
if (multiple_)
picker_type = ui::SelectFileDialog::SELECT_OPEN_MULTI_FILE;

Powered by Google App Engine
This is Rietveld 408576698