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

Unified Diff: chrome/browser/ui/webui/media/media_internals_handler.cc

Issue 7554008: Removal of Profile from content part 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Profile helper function, rebase Created 9 years, 4 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
« no previous file with comments | « chrome/browser/ui/webui/history_ui.cc ('k') | chrome/browser/ui/webui/net_internals_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « chrome/browser/ui/webui/history_ui.cc ('k') | chrome/browser/ui/webui/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698