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

Unified Diff: chrome/browser/resources/inspect/inspect.js

Issue 337803003: Add trace links to chrome://inspect (if chrome://inspect?tracing is used) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/inspect/inspect.js
diff --git a/chrome/browser/resources/inspect/inspect.js b/chrome/browser/resources/inspect/inspect.js
index e18a8814760405172de360ee529d74c87717d730..07bfa87ac6a9f5aee6658542d66217c560db7652 100644
--- a/chrome/browser/resources/inspect/inspect.js
+++ b/chrome/browser/resources/inspect/inspect.js
@@ -342,6 +342,18 @@ function populateRemoteTargets(devices) {
browser.id, queryParamsObject['browser-inspector']), false);
}
+ if ('trace' in queryParamsObject || 'tracing' in queryParamsObject) {
+ var link = document.createElement('span');
+ link.classList.add('action');
+ link.setAttribute('tabindex', 1);
+ link.textContent = 'trace';
+ browserHeader.appendChild(link);
+ link.addEventListener(
+ 'click',
+ sendCommand.bind(null, 'trace-browser', browser.source,
+ browser.id), false);
+ }
+
pageList = document.createElement('div');
pageList.className = 'list pages';
browserSection.appendChild(pageList);
« no previous file with comments | « no previous file | chrome/browser/ui/webui/inspect_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698