Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 * 'site-list' shows a list of Allowed and Blocked sites for a given | 7 * 'site-list' shows a list of Allowed and Blocked sites for a given |
| 8 * category. | 8 * category. |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 374 this.activeDialogAnchor_ = null; | 374 this.activeDialogAnchor_ = null; |
| 375 }, | 375 }, |
| 376 | 376 |
| 377 /** @private */ | 377 /** @private */ |
| 378 onResetTap_: function() { | 378 onResetTap_: function() { |
| 379 this.resetPermissionForOrigin_(this.actionMenuSite_); | 379 this.resetPermissionForOrigin_(this.actionMenuSite_); |
| 380 this.closeActionMenu_(); | 380 this.closeActionMenu_(); |
| 381 }, | 381 }, |
| 382 | 382 |
| 383 /** | 383 /** |
| 384 * Returns the appropriate site description to display. This can, for example, | 384 * Returns the appropriate site description to display. This can, for example, |
|
msramek
2017/06/01 23:09:59
Please update the jsdoc to reflect the change.
dschuyler
2017/06/13 20:49:25
I've changed the code to match the prior output mo
| |
| 385 * be blank, an 'embedded on <site>' or 'Current incognito session' (or a | 385 * be blank, an 'embedded on <site>' or 'Current incognito session' (or a |
| 386 * mix of the last two). | 386 * mix of the last two). |
| 387 * @param {SiteException} item The site exception entry. | 387 * @param {SiteException} item The site exception entry. |
| 388 * @return {string} The site description. | 388 * @return {string} The site description. |
| 389 */ | 389 */ |
| 390 computeSiteDescription_: function(item) { | 390 computeSiteDescription_: function(item) { |
|
msramek
2017/06/01 23:09:59
So, this will change the current strings
"""
goog
dschuyler
2017/06/13 20:49:25
Okay, thanks! I've changed the code to match the p
| |
| 391 if (item.incognito && item.embeddingDisplayName.length > 0) { | 391 if (item.incognito && item.embeddingOrigin.length > 0) { |
| 392 return loadTimeData.getStringF('embeddedIncognitoSite', | 392 return loadTimeData.getStringF( |
| 393 item.embeddingDisplayName); | 393 'embeddedIncognitoSite', item.embeddingOrigin); |
| 394 } | 394 } |
| 395 | 395 |
| 396 if (item.incognito) | 396 if (item.incognito) |
| 397 return loadTimeData.getString('incognitoSite'); | 397 return loadTimeData.getString('incognitoSite'); |
| 398 return item.embeddingDisplayName; | 398 return item.embeddingOrigin; |
| 399 }, | 399 }, |
| 400 | 400 |
| 401 /** | 401 /** |
| 402 * @param {!{model: !{item: !SiteException}}} e | 402 * @param {!{model: !{item: !SiteException}}} e |
| 403 * @private | 403 * @private |
| 404 */ | 404 */ |
| 405 onResetButtonTap_: function(e) { | 405 onResetButtonTap_: function(e) { |
| 406 this.resetPermissionForOrigin_(e.model.item); | 406 this.resetPermissionForOrigin_(e.model.item); |
| 407 }, | 407 }, |
| 408 | 408 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 422 /** @private */ | 422 /** @private */ |
| 423 closeActionMenu_: function() { | 423 closeActionMenu_: function() { |
| 424 this.actionMenuSite_ = null; | 424 this.actionMenuSite_ = null; |
| 425 this.activeDialogAnchor_ = null; | 425 this.activeDialogAnchor_ = null; |
| 426 var actionMenu = /** @type {!CrActionMenuElement} */ ( | 426 var actionMenu = /** @type {!CrActionMenuElement} */ ( |
| 427 this.$$('dialog[is=cr-action-menu]')); | 427 this.$$('dialog[is=cr-action-menu]')); |
| 428 if (actionMenu.open) | 428 if (actionMenu.open) |
| 429 actionMenu.close(); | 429 actionMenu.close(); |
| 430 }, | 430 }, |
| 431 }); | 431 }); |
| OLD | NEW |