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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js

Issue 1761243002: [DevTools] Fix compile errors before closure compiler roll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prepare-bindings-module
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js b/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js
index e40ccf40ca2caa2770506e41ab652b34163f0ec1..6ce9762d87c6ad3d797cadef1f882adb7cb5bc76 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/TempFile.js
@@ -233,7 +233,7 @@ WebInspector.TempFile.prototype = {
*/
WebInspector.DeferredTempFile = function(dirPath, name)
{
- /** @type {!Array.<!{strings: !Array.<string>, callback: function(number)}>} */
+ /** @type {!Array.<!{strings: !Array.<string>, callback: ?function(number)}>} */
this._chunks = [];
this._tempFile = null;
this._isWriting = false;
@@ -254,7 +254,7 @@ WebInspector.DeferredTempFile.prototype = {
{
if (this._finishCallback)
throw new Error("No writes are allowed after close.");
- this._chunks.push({strings: strings, callback: callback});
+ this._chunks.push({strings: strings, callback: callback || null});
if (this._tempFile && !this._isWriting)
this._writeNextChunk();
},

Powered by Google App Engine
This is Rietveld 408576698