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

Unified Diff: content/renderer/render_view_impl.cc

Issue 23556003: Implement about:tracing UI for the sampling profiler (Chromium part) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « content/public/browser/trace_subscriber.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index be7973e3b638aaf586c384c8df41b6422af5db73..12b5e9104bf1f00208521aa990570ff2632ff66b 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -2120,8 +2120,11 @@ void RenderViewImpl::UpdateTitle(WebFrame* frame,
if (frame->parent())
return;
+ std::string title_suffix =
+ GetVisibilityState() == WebKit::WebPageVisibilityStatePrerender ?
+ " (Prerender)" : "";
base::debug::TraceLog::GetInstance()->UpdateProcessLabel(
- routing_id_, UTF16ToUTF8(title));
+ routing_id_, UTF16ToUTF8(title) + title_suffix);
string16 shortened_title = title.substr(0, kMaxTitleChars);
Send(new ViewHostMsg_UpdateTitle(routing_id_, page_id_, shortened_title,
« no previous file with comments | « content/public/browser/trace_subscriber.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698