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

Unified Diff: third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js

Issue 2567343003: Revert of [DevTools] Migrate security handler to new generator. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js b/third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js
index 66aa0d393130a7092d522a32dc68e5170e976d1b..f1d91a77fcf4ad9116d763030bd583db249fb9b1 100644
--- a/third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/security/SecurityModel.js
@@ -97,13 +97,13 @@
/**
* @override
* @param {!Protocol.Security.SecurityState} securityState
- * @param {!Array<!Protocol.Security.SecurityStateExplanation>} explanations
- * @param {!Protocol.Security.InsecureContentStatus} insecureContentStatus
- * @param {boolean} schemeIsCryptographic
+ * @param {!Array<!Protocol.Security.SecurityStateExplanation>=} explanations
+ * @param {!Protocol.Security.InsecureContentStatus=} insecureContentStatus
+ * @param {boolean=} schemeIsCryptographic
*/
securityStateChanged(securityState, explanations, insecureContentStatus, schemeIsCryptographic) {
- var pageSecurityState =
- new Security.PageSecurityState(securityState, explanations, insecureContentStatus, schemeIsCryptographic);
+ var pageSecurityState = new Security.PageSecurityState(
+ securityState, explanations || [], insecureContentStatus || null, schemeIsCryptographic || false);
this._model.dispatchEventToListeners(Security.SecurityModel.Events.SecurityStateChanged, pageSecurityState);
}
};
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698