summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/sync_internals/traffic.js
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/resources/sync_internals/traffic.js')
-rw-r--r--chrome/browser/resources/sync_internals/traffic.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/chrome/browser/resources/sync_internals/traffic.js b/chrome/browser/resources/sync_internals/traffic.js
deleted file mode 100644
index 2e56fb5..0000000
--- a/chrome/browser/resources/sync_internals/traffic.js
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-(function() {
- var trafficToTextButton = document.getElementById('traffic-to-text');
- var trafficDump = document.getElementById('traffic-dump');
- trafficToTextButton.addEventListener('click', function(event) {
- chrome.sync.getClientServerTraffic(printData);
-});
-
-function printData(trafficRecord) {
- var trafficData = '';
- trafficData += '===\n';
- trafficData += 'Client Server Traffic\n';
- trafficData += '===\n';
- trafficData += JSON.stringify(trafficRecord, null, 2);
- trafficData += '\n';
-
- trafficDump.textContent = trafficData;
-}
-})();