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

Side by Side Diff: chrome/browser/resources/settings/internet_page/internet_page.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 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
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 * @fileoverview 6 * @fileoverview
7 * 'settings-internet-page' is the settings page containing internet 7 * 'settings-internet-page' is the settings page containing internet
8 * settings. 8 * settings.
9 */ 9 */
10 Polymer({ 10 Polymer({
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 thirdPartyVpnProviders_: { 51 thirdPartyVpnProviders_: {
52 type: Array, 52 type: Array,
53 value: function() { 53 value: function() {
54 return []; 54 return [];
55 } 55 }
56 }, 56 },
57 }, 57 },
58 58
59 /** @override */ 59 /** @override */
60 attached: function() { 60 attached: function() {
61 this.boundOnExtensionAdded_ = this.boundOnExtensionAdded_ || 61 this.boundOnExtensionAdded_ =
62 this.onExtensionAdded_.bind(this); 62 this.boundOnExtensionAdded_ || this.onExtensionAdded_.bind(this);
63 chrome.management.onInstalled.addListener(this.boundOnExtensionAdded_); 63 chrome.management.onInstalled.addListener(this.boundOnExtensionAdded_);
64 chrome.management.onEnabled.addListener(this.boundOnExtensionAdded_); 64 chrome.management.onEnabled.addListener(this.boundOnExtensionAdded_);
65 65
66 this.boundOnExtensionRemoved_ = this.boundOnExtensionRemoved_ || 66 this.boundOnExtensionRemoved_ =
67 this.onExtensionRemoved_.bind(this); 67 this.boundOnExtensionRemoved_ || this.onExtensionRemoved_.bind(this);
68 chrome.management.onUninstalled.addListener( 68 chrome.management.onUninstalled.addListener(this.boundOnExtensionRemoved_);
69 this.boundOnExtensionRemoved_);
70 69
71 this.boundOnExtensionDisabled_ = this.boundOnExtensionDisabled_ || 70 this.boundOnExtensionDisabled_ =
72 this.onExtensionDisabled_.bind(this); 71 this.boundOnExtensionDisabled_ || this.onExtensionDisabled_.bind(this);
73 chrome.management.onDisabled.addListener(this.boundOnExtensionDisabled_); 72 chrome.management.onDisabled.addListener(this.boundOnExtensionDisabled_);
74 73
75 chrome.management.getAll(this.onGetAllExtensions_.bind(this)); 74 chrome.management.getAll(this.onGetAllExtensions_.bind(this));
76 }, 75 },
77 76
78 /** @override */ 77 /** @override */
79 detached: function() { 78 detached: function() {
80 chrome.management.onInstalled.removeListener( 79 chrome.management.onInstalled.removeListener(
81 assert(this.boundOnExtensionAdded_)); 80 assert(this.boundOnExtensionAdded_));
82 chrome.management.onEnabled.removeListener( 81 chrome.management.onEnabled.removeListener(
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 }, 225 },
227 226
228 /** 227 /**
229 * @param {!chrome.networkingPrivate.ThirdPartyVPNProperties} provider 228 * @param {!chrome.networkingPrivate.ThirdPartyVPNProperties} provider
230 * @return {string} 229 * @return {string}
231 */ 230 */
232 getAddThirdParrtyVpnLabel_: function(provider) { 231 getAddThirdParrtyVpnLabel_: function(provider) {
233 return this.i18n('internetAddThirdPartyVPN', provider.ProviderName); 232 return this.i18n('internetAddThirdPartyVPN', provider.ProviderName);
234 } 233 }
235 }); 234 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698