Index: chrome/browser/ui/webui/media/media_internals_handler.cc |
diff --git a/chrome/browser/ui/webui/media/media_internals_handler.cc b/chrome/browser/ui/webui/media/media_internals_handler.cc |
index f68efaabf89818db8f7d623f24a6cc7c79ce7b55..39fe3ddb19b3da98f92034b1ea6478fe5d80c638 100644 |
--- a/chrome/browser/ui/webui/media/media_internals_handler.cc |
+++ b/chrome/browser/ui/webui/media/media_internals_handler.cc |
@@ -9,6 +9,7 @@ |
#include "chrome/browser/ui/webui/media/media_internals_proxy.h" |
#include "content/browser/browser_thread.h" |
#include "content/browser/renderer_host/render_view_host.h" |
+#include "content/browser/tab_contents/tab_contents.h" |
MediaInternalsMessageHandler::MediaInternalsMessageHandler() |
: proxy_(new MediaInternalsProxy()) {} |
@@ -37,5 +38,6 @@ void MediaInternalsMessageHandler::OnGetEverything(const ListValue* list) { |
} |
void MediaInternalsMessageHandler::OnUpdate(const string16& update) { |
- web_ui_->GetRenderViewHost()->ExecuteJavascriptInWebFrame(string16(), update); |
+ web_ui_->tab_contents()->render_view_host()-> |
+ ExecuteJavascriptInWebFrame(string16(), update); |
} |