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

Unified Diff: chrome/browser/ui/webui/tracing_ui.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/tracing_ui.cc
diff --git a/chrome/browser/ui/webui/tracing_ui.cc b/chrome/browser/ui/webui/tracing_ui.cc
index 23a2639b16119cdde09217057c0d9d6217ce6c9d..b6eacda66b3521b5fed5981172b9a0bc8ab773f2 100644
--- a/chrome/browser/ui/webui/tracing_ui.cc
+++ b/chrome/browser/ui/webui/tracing_ui.cc
@@ -14,6 +14,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
+#include "chrome/browser/chrome_select_file_policy.h"
#include "chrome/browser/gpu_blacklist.h"
#include "chrome/browser/gpu_util.h"
#include "chrome/browser/profiles/profile.h"
@@ -342,7 +343,9 @@ void TracingMessageHandler::OnLoadTraceFile(const ListValue* list) {
SelectFileDialog::SELECT_OPEN_FILE,
string16(),
FilePath(),
- NULL, 0, FILE_PATH_LITERAL(""), web_ui()->GetWebContents(),
+ NULL, 0, FILE_PATH_LITERAL(""),
+ ChromeSelectFilePolicy::DisplayInfobarCallback(
+ web_ui()->GetWebContents()),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), NULL);
}
@@ -373,7 +376,9 @@ void TracingMessageHandler::OnSaveTraceFile(const ListValue* list) {
SelectFileDialog::SELECT_SAVEAS_FILE,
string16(),
FilePath(),
- NULL, 0, FILE_PATH_LITERAL(""), web_ui()->GetWebContents(),
+ NULL, 0, FILE_PATH_LITERAL(""),
+ ChromeSelectFilePolicy::DisplayInfobarCallback(
+ web_ui()->GetWebContents()),
web_ui()->GetWebContents()->GetView()->GetTopLevelNativeWindow(), NULL);
}

Powered by Google App Engine
This is Rietveld 408576698