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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkConfigView.js

Issue 1574003002: Merge to 2564 "[DevTools] Fix custom user agent override not applying." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2564
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.NetworkConfigView = function() 9 WebInspector.NetworkConfigView = function()
10 { 10 {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 this._userAgentTypeChanged(this._autoUserAgentRadio); 74 this._userAgentTypeChanged(this._autoUserAgentRadio);
75 }, 75 },
76 76
77 _userAgentChanged: function() 77 _userAgentChanged: function()
78 { 78 {
79 this._autoUserAgent.value = WebInspector.multitargetNetworkManager.userA gentOverride() || WebInspector.UIString("Default"); 79 this._autoUserAgent.value = WebInspector.multitargetNetworkManager.userA gentOverride() || WebInspector.UIString("Default");
80 }, 80 },
81 81
82 _customUserAgentChanged: function() 82 _customUserAgentChanged: function()
83 { 83 {
84 if (!this._customUserAgent.checked) 84 if (!this._customUserAgentRadio.checked)
85 return; 85 return;
86 WebInspector.multitargetNetworkManager.setCustomUserAgentOverride(this._ customUserAgentSetting.get()); 86 WebInspector.multitargetNetworkManager.setCustomUserAgentOverride(this._ customUserAgentSetting.get());
87 }, 87 },
88 88
89 /** 89 /**
90 * @param {!Element} radioElement 90 * @param {!Element} radioElement
91 */ 91 */
92 _userAgentTypeChanged: function(radioElement) 92 _userAgentTypeChanged: function(radioElement)
93 { 93 {
94 var useCustomUA = radioElement === this._customUserAgentRadio; 94 var useCustomUA = radioElement === this._customUserAgentRadio;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 * @param {!WebInspector.Context} context 248 * @param {!WebInspector.Context} context
249 * @param {string} actionId 249 * @param {string} actionId
250 * @return {boolean} 250 * @return {boolean}
251 */ 251 */
252 handleAction: function(context, actionId) 252 handleAction: function(context, actionId)
253 { 253 {
254 WebInspector.inspectorView.showViewInDrawer("network.config"); 254 WebInspector.inspectorView.showViewInDrawer("network.config");
255 return true; 255 return true;
256 } 256 }
257 } 257 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698