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

Unified Diff: chrome/common/extensions/docs/templates/intros/devtools_network.html

Issue 2179673002: Clean up DevTools API docs following removal of old APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: chrome/common/extensions/docs/templates/intros/devtools_network.html
diff --git a/chrome/common/extensions/docs/templates/intros/devtools_network.html b/chrome/common/extensions/docs/templates/intros/devtools_network.html
index 11f19d3c06e2aa9c52050c8808038445a186afbe..e79ab53912580546eff4dadf8e6bb29c2890f9fa 100644
--- a/chrome/common/extensions/docs/templates/intros/devtools_network.html
+++ b/chrome/common/extensions/docs/templates/intros/devtools_network.html
@@ -36,10 +36,11 @@ loaded:</p>
<pre>
chrome.devtools.network.onRequestFinished.addListener(
function(request) {
- if (request.response.bodySize > 40*1024)
- chrome.experimental.devtools.console.addMessage(
- chrome.experimental.devtools.console.Severity.Warning,
- "Large image: " + request.request.url);
+ if (request.response.bodySize > 40*1024) {
+ chrome.devtools.inspectedWindow.eval(
+ 'console.log("Large image: " + unescape("' +
+ escape(request.request.url) + '"))');
+ }
});
</pre>

Powered by Google App Engine
This is Rietveld 408576698