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

Unified Diff: chrome/browser/resources/settings/privacy_page/privacy_page.js

Issue 2691223002: Revert of MD Settings: Fix the Network Prediction toggle box. (Closed)
Patch Set: Created 3 years, 10 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
Index: chrome/browser/resources/settings/privacy_page/privacy_page.js
diff --git a/chrome/browser/resources/settings/privacy_page/privacy_page.js b/chrome/browser/resources/settings/privacy_page/privacy_page.js
index 4268e9ba851d433fb214f26149ca7ffa46b32330..d1cb9f9d5a4e3e7f68905d128024b8261f624813 100644
--- a/chrome/browser/resources/settings/privacy_page/privacy_page.js
+++ b/chrome/browser/resources/settings/privacy_page/privacy_page.js
@@ -7,19 +7,6 @@
* 'settings-privacy-page' is the settings page containing privacy and
* security settings.
*/
-(function() {
-
-/**
- * Must be kept in sync with the C++ enum of the same name.
- * @enum {number}
- */
-var NetworkPredictionOptions = {
- ALWAYS: 0,
- WIFI_ONLY: 1,
- NEVER: 2,
- DEFAULT: 1
-};
-
Polymer({
is: 'settings-privacy-page',
@@ -56,17 +43,6 @@
/** @private */
showClearBrowsingDataDialog_: Boolean,
-
- /**
- * Used for HTML bindings. This is defined as a property rather than within
- * the ready callback, because the value needs to be available before
- * local DOM initialization - otherwise, the toggle has unexpected behavior.
- * @private
- */
- networkPredictionEnum_: {
- type: Object,
- value: NetworkPredictionOptions,
- },
},
ready: function() {
@@ -211,4 +187,3 @@
: this.i18n('siteSettingsBlocked');
},
});
-})();

Powered by Google App Engine
This is Rietveld 408576698