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

Side by Side Diff: remoting/webapp/base/js/xmpp_error_cache.js

Issue 1493083002: Remove QUIC support from remoting host and client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 /** @suppress {duplicate} */ 6 /** @suppress {duplicate} */
7 var remoting = remoting || {}; 7 var remoting = remoting || {};
8 8
9 (function() { 9 (function() {
10 10
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 'content', 93 'content',
94 'description', 94 'description',
95 'error', 95 'error',
96 'standard-ice', 96 'standard-ice',
97 'control', 97 'control',
98 'event', 98 'event',
99 'video', 99 'video',
100 'audio', 100 'audio',
101 'initial-resolution', 101 'initial-resolution',
102 'authentication', 102 'authentication',
103 'quic-config',
104 'service-unavailable' 103 'service-unavailable'
105 ]); 104 ]);
106 105
107 // Strip PII from attributes. 106 // Strip PII from attributes.
108 var attributes = node.attributes; 107 var attributes = node.attributes;
109 for (var i = 0; i < attributes.length; i++) { 108 for (var i = 0; i < attributes.length; i++) {
110 var attribute = /** @type {Attr} */ (attributes[i]); 109 var attribute = /** @type {Attr} */ (attributes[i]);
111 var value = 'REDACTED'; 110 var value = 'REDACTED';
112 if (attributesWhiteList.has(attribute.nodeName)) { 111 if (attributesWhiteList.has(attribute.nodeName)) {
113 value = attribute.nodeValue; 112 value = attribute.nodeValue;
(...skipping 15 matching lines...) Expand all
129 // Strip PII from child nodes. 128 // Strip PII from child nodes.
130 var children = node.children; 129 var children = node.children;
131 for (i = 0; i < children.length; i++) { 130 for (i = 0; i < children.length; i++) {
132 var child = /** @type{Element}*/ (children[i]); 131 var child = /** @type{Element}*/ (children[i]);
133 var childCopy = outNode.ownerDocument.createElement(child.tagName); 132 var childCopy = outNode.ownerDocument.createElement(child.tagName);
134 outNode.appendChild(childCopy); 133 outNode.appendChild(childCopy);
135 stripPII(child, childCopy); 134 stripPII(child, childCopy);
136 } 135 }
137 } 136 }
138 137
139 })(); 138 })();
OLDNEW
« no previous file with comments | « remoting/webapp/base/js/experiments.js ('k') | remoting/webapp/base/js/xmpp_error_cache_unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698