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); |
} |