Chromium Code Reviews| Index: Source/devtools/front_end/security/SecurityModel.js |
| diff --git a/Source/devtools/front_end/security/SecurityModel.js b/Source/devtools/front_end/security/SecurityModel.js |
| index e9e75c23608b3d0e01813426c314116b6f5efeeb..be3a1c90079ca947d47ffdeb7808ef983aa6559f 100644 |
| --- a/Source/devtools/front_end/security/SecurityModel.js |
| +++ b/Source/devtools/front_end/security/SecurityModel.js |
| @@ -15,7 +15,7 @@ WebInspector.SecurityModel = function(target) |
| target.registerSecurityDispatcher(this._dispatcher); |
| this._securityAgent.enable(); |
| - this._securityState = "unknown"; |
| + this._securityState = /** @type {!SecurityAgent.SecurityState} */ ("unknown"); |
| } |
| WebInspector.SecurityModel.EventTypes = { |
| @@ -59,10 +59,14 @@ WebInspector.SecurityDispatcher.prototype = { |
| /** |
| * @override |
| * @param {!SecurityAgent.SecurityState} securityState |
| + * @param {!Array<!SecurityAgent.SecurityStateExplanation>=} explanations |
| */ |
| - securityStateChanged: function(securityState) |
| + securityStateChanged: function(securityState, explanations) |
| { |
| - this._model._securityState = securityState; |
| - this._model.dispatchEventToListeners(WebInspector.SecurityModel.EventTypes.SecurityStateChanged, securityState); |
| + var data = ({ |
|
dgozman
2015/06/19 11:33:36
nit: remove () and make this one-liner.
lgarron
2015/06/19 17:35:41
Done.
(Forgot to remove these while removing the
|
| + "securityState": securityState, |
| + "explanations": explanations || [] |
| + }); |
| + this._model.dispatchEventToListeners(WebInspector.SecurityModel.EventTypes.SecurityStateChanged, data); |
| } |
| } |