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

Side by Side Diff: chrome/browser/resources/sync_internals/traffic.js

Issue 217633003: sync: Remove TrafficRecorder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 (function() {
6 var trafficToTextButton = document.getElementById('traffic-to-text');
7 var trafficDump = document.getElementById('traffic-dump');
8 trafficToTextButton.addEventListener('click', function(event) {
9 chrome.sync.getClientServerTraffic(printData);
10 });
11
12 function printData(trafficRecord) {
13 var trafficData = '';
14 trafficData += '===\n';
15 trafficData += 'Client Server Traffic\n';
16 trafficData += '===\n';
17 trafficData += JSON.stringify(trafficRecord, null, 2);
18 trafficData += '\n';
19
20 trafficDump.textContent = trafficData;
21 }
22 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/sync_internals/traffic.html ('k') | chrome/browser/resources/sync_internals_resources.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698