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 7b277c0def44d4521d7a23642ef438507ffce326..ae8e5b8c1b859c41956584d9fd70b251e4ff328b 100644 |
--- a/chrome/browser/ui/webui/tracing_ui.cc |
+++ b/chrome/browser/ui/webui/tracing_ui.cc |
@@ -426,8 +426,9 @@ void TracingMessageHandler::LoadTraceFileComplete(std::string* file_contents) { |
javascript += UTF8ToWide(*file_contents); |
javascript += L");"; |
- web_ui_->GetRenderViewHost()->ExecuteJavascriptInWebFrame(string16(), |
- WideToUTF16Hack(javascript)); |
+ web_ui_->tab_contents()->render_view_host()-> |
+ ExecuteJavascriptInWebFrame(string16(), |
+ WideToUTF16Hack(javascript)); |
} |
void TracingMessageHandler::OnSaveTraceFile(const ListValue* list) { |
@@ -496,8 +497,9 @@ void TracingMessageHandler::OnTraceDataCollected( |
javascript += UTF8ToWide(json_events); |
javascript += L");"; |
- web_ui_->GetRenderViewHost()->ExecuteJavascriptInWebFrame(string16(), |
- WideToUTF16Hack(javascript)); |
+ web_ui_->tab_contents()->render_view_host()-> |
+ ExecuteJavascriptInWebFrame(string16(), |
+ WideToUTF16Hack(javascript)); |
} |
void TracingMessageHandler::OnTraceBufferPercentFullReply(float percent_full) { |