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

Unified Diff: chrome/browser/ui/webui/extensions/pack_extension_handler.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/ui/webui/extensions/pack_extension_handler.cc
diff --git a/chrome/browser/ui/webui/extensions/pack_extension_handler.cc b/chrome/browser/ui/webui/extensions/pack_extension_handler.cc
index 7df93cb2c607694280ea4fa786f56936240fb4ea..599dbe5fa946458be4be40c22090f7b49f6e1a7a 100644
--- a/chrome/browser/ui/webui/extensions/pack_extension_handler.cc
+++ b/chrome/browser/ui/webui/extensions/pack_extension_handler.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/webui/extensions/pack_extension_handler.h"
+#include "chrome/browser/chrome_select_file_policy.h"
#include "chrome/browser/extensions/extension_creator.h"
#include "base/bind.h"
#include "base/utf_string_conversions.h"
@@ -180,8 +181,11 @@ void PackExtensionHandler::HandleSelectFilePathMessage(
load_extension_dialog_ = SelectFileDialog::Create(this);
load_extension_dialog_->SelectFile(
type, select_title, FilePath(), &info, file_type_index,
- FILE_PATH_LITERAL(""), web_ui()->GetWebContents(),
- web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), NULL);
+ FILE_PATH_LITERAL(""),
+ ChromeSelectFilePolicy::DisplayInfobarCallback(
+ web_ui()->GetWebContents()),
+ web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(),
+ NULL);
}
void PackExtensionHandler::ShowAlert(const std::string& message) {

Powered by Google App Engine
This is Rietveld 408576698