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

Unified Diff: chrome/browser/ui/webui/tracing_ui.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/sync_setup_handler.cc ('k') | chrome/browser/ui/webui/web_ui_test_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « chrome/browser/ui/webui/sync_setup_handler.cc ('k') | chrome/browser/ui/webui/web_ui_test_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698