Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 45 * @private | 45 * @private |
| 46 */ | 46 */ |
| 47 hasPermissions_: function() { | 47 hasPermissions_: function() { |
| 48 return this.data.permissions.length > 0; | 48 return this.data.permissions.length > 0; |
| 49 }, | 49 }, |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * @return {boolean} | 52 * @return {boolean} |
| 53 * @private | 53 * @private |
| 54 */ | 54 */ |
| 55 shouldShowHomepageButton_: function() { | |
| 56 return this.data.homePage.url.length > 0; | |
|
michaelpg
2016/11/28 23:09:21
nit: add a comment that we ignore |specified| beca
Devlin
2016/11/29 02:13:02
Done.
| |
| 57 }, | |
| 58 | |
| 59 /** | |
| 60 * @return {boolean} | |
| 61 * @private | |
| 62 */ | |
| 55 shouldShowOptionsButton_: function() { | 63 shouldShowOptionsButton_: function() { |
| 56 return !!this.data.optionsPage; | 64 return !!this.data.optionsPage; |
| 57 }, | 65 }, |
| 58 | 66 |
| 59 /** | 67 /** |
| 60 * @return {boolean} | 68 * @return {boolean} |
| 61 * @private | 69 * @private |
| 62 */ | 70 */ |
| 63 shouldShowOptionsSection_: function() { | 71 shouldShowOptionsSection_: function() { |
| 64 return this.data.incognitoAccess.isEnabled || | 72 return this.data.incognitoAccess.isEnabled || |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 106 | 114 |
| 107 /** @private */ | 115 /** @private */ |
| 108 computeSourceString_: function() { | 116 computeSourceString_: function() { |
| 109 return extensions.getItemSourceString( | 117 return extensions.getItemSourceString( |
| 110 extensions.getItemSource(this.data)); | 118 extensions.getItemSource(this.data)); |
| 111 } | 119 } |
| 112 }); | 120 }); |
| 113 | 121 |
| 114 return {DetailView: DetailView}; | 122 return {DetailView: DetailView}; |
| 115 }); | 123 }); |
| OLD | NEW |