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

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

Issue 10667026: Start consolidating cross-port file selection code into ui/base/dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 37460db1aef09c2b98b80a19ac311f13bc8a0729..d5ed5a135308ec89b511d2e3166d9b5814040647 100644
--- a/chrome/browser/extensions/api/file_system/file_system_api.cc
+++ b/chrome/browser/extensions/api/file_system/file_system_api.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/file_path.h"
#include "base/file_util.h"
+#include "chrome/browser/chrome_select_file_policy.h"
#include "chrome/browser/extensions/shell_window_registry.h"
#include "chrome/browser/platform_util.h"
#include "chrome/browser/ui/extensions/shell_window.h"
@@ -126,13 +127,16 @@ class FileSystemPickerFunction::FilePicker : public SelectFileDialog::Listener {
gfx::NativeWindow owning_window = web_contents ?
platform_util::GetTopLevel(web_contents->GetNativeView()) : NULL;
- select_file_dialog_->SelectFile(for_save ?
- SelectFileDialog::SELECT_SAVEAS_FILE :
- SelectFileDialog::SELECT_OPEN_FILE,
- string16(),
- suggested_path,
- &file_type_info, 0, FILE_PATH_LITERAL(""),
- web_contents, owning_window, NULL);
+ select_file_dialog_->SelectFile(
+ for_save ?
+ SelectFileDialog::SELECT_SAVEAS_FILE :
+ SelectFileDialog::SELECT_OPEN_FILE,
+ string16(),
+ suggested_path,
+ &file_type_info, 0, FILE_PATH_LITERAL(""),
+ ChromeSelectFilePolicy::DisplayInfobarCallback(web_contents),
+ owning_window,
+ NULL);
}
virtual ~FilePicker() {}

Powered by Google App Engine
This is Rietveld 408576698