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

Side by Side Diff: chrome/browser/resources/md_extensions/detail_view.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 cr.define('extensions', function() { 5 cr.define('extensions', function() {
6 'use strict'; 6 'use strict';
7 7
8 var DetailView = Polymer({ 8 var DetailView = Polymer({
9 is: 'extensions-detail-view', 9 is: 'extensions-detail-view',
10 10
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 shouldShowOptionsButton_: function() { 67 shouldShowOptionsButton_: function() {
68 return !!this.data.optionsPage; 68 return !!this.data.optionsPage;
69 }, 69 },
70 70
71 /** 71 /**
72 * @return {boolean} 72 * @return {boolean}
73 * @private 73 * @private
74 */ 74 */
75 shouldShowOptionsSection_: function() { 75 shouldShowOptionsSection_: function() {
76 return this.data.incognitoAccess.isEnabled || 76 return this.data.incognitoAccess.isEnabled ||
77 this.data.fileAccess.isEnabled || 77 this.data.fileAccess.isEnabled || this.data.runOnAllUrls.isEnabled ||
78 this.data.runOnAllUrls.isEnabled || 78 this.data.errorCollection.isEnabled;
79 this.data.errorCollection.isEnabled;
80 }, 79 },
81 80
82 /** @private */ 81 /** @private */
83 onOptionsButtonTap_: function() { 82 onOptionsButtonTap_: function() {
84 this.delegate.showItemOptionsPage(this.data.id); 83 this.delegate.showItemOptionsPage(this.data.id);
85 }, 84 },
86 85
87 /** @private */ 86 /** @private */
88 onAllowIncognitoChange_: function() { 87 onAllowIncognitoChange_: function() {
89 this.delegate.setItemAllowedIncognito( 88 this.delegate.setItemAllowedIncognito(
(...skipping 28 matching lines...) Expand all
118 117
119 /** @private */ 118 /** @private */
120 computeSourceString_: function() { 119 computeSourceString_: function() {
121 return extensions.getItemSourceString( 120 return extensions.getItemSourceString(
122 extensions.getItemSource(this.data)); 121 extensions.getItemSource(this.data));
123 } 122 }
124 }); 123 });
125 124
126 return {DetailView: DetailView}; 125 return {DetailView: DetailView};
127 }); 126 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_extensions/code_section.js ('k') | chrome/browser/resources/md_extensions/error_page.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698