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

Unified Diff: chrome/browser/resources/net_internals/browser_bridge.js

Issue 10185003: Remove net-internals page for throttling, introduce flag for extension devs instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix JavaScript presubmit. Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/net_pref_observer.cc ('k') | chrome/browser/resources/net_internals/category_tabs.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/browser_bridge.js
diff --git a/chrome/browser/resources/net_internals/browser_bridge.js b/chrome/browser/resources/net_internals/browser_bridge.js
index 55bc2b29265244018e42625cb50efe374a91fd80..ed849a56faa1984325553607e031b992e69f703e 100644
--- a/chrome/browser/resources/net_internals/browser_bridge.js
+++ b/chrome/browser/resources/net_internals/browser_bridge.js
@@ -23,7 +23,6 @@ var BrowserBridge = (function() {
// List of observers for various bits of browser state.
this.connectionTestsObservers_ = [];
this.hstsObservers_ = [];
- this.httpThrottlingObservers_ = [];
this.constantsObservers_ = [];
this.crosONCFileParseObservers_ = [];
this.storeDebugLogsObservers_ = [];
@@ -219,10 +218,6 @@ var BrowserBridge = (function() {
this.send('setLogLevel', ['' + logLevel]);
},
- enableHttpThrottling: function(enable) {
- this.send('enableHttpThrottling', [enable]);
- },
-
refreshSystemLogs: function() {
this.send('refreshSystemLogs');
},
@@ -349,13 +344,6 @@ var BrowserBridge = (function() {
this.pollableDataHelpers_.httpCacheInfo.update(info);
},
- receivedHttpThrottlingEnabledPrefChanged: function(enabled) {
- for (var i = 0; i < this.httpThrottlingObservers_.length; i++) {
- this.httpThrottlingObservers_[i].onHttpThrottlingEnabledPrefChanged(
- enabled);
- }
- },
-
receivedPrerenderInfo: function(prerenderInfo) {
this.pollableDataHelpers_.prerenderInfo.update(prerenderInfo);
},
@@ -561,16 +549,6 @@ var BrowserBridge = (function() {
},
/**
- * Adds a listener for HTTP throttling-related events. |observer| will be
- * called back when HTTP throttling is enabled/disabled, through:
- *
- * observer.onHttpThrottlingEnabledPrefChanged(enabled);
- */
- addHttpThrottlingObserver: function(observer) {
- this.httpThrottlingObservers_.push(observer);
- },
-
- /**
* Adds a listener for the received constants event. |observer| will be
* called back when the constants are received, through:
*
« no previous file with comments | « chrome/browser/net/net_pref_observer.cc ('k') | chrome/browser/resources/net_internals/category_tabs.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698