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

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..2cb4021fff243675b4c143966e3c9567078adafd 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)|undefined)}>} */
lushnikov 2016/03/04 05:06:58 null
kozy 2016/03/04 06:13:29 Done.
this._chunks = [];
this._tempFile = null;
this._isWriting = false;
@@ -301,7 +301,7 @@ WebInspector.DeferredTempFile.prototype = {
return;
var chunk = this._chunks.shift();
this._isWriting = true;
- this._tempFile.write(/** @type {!Array.<string>} */(chunk.strings), this._didWriteChunk.bind(this, chunk.callback));
+ this._tempFile.write(/** @type {!Array.<string>} */(chunk.strings), this._didWriteChunk.bind(this, chunk.callback || null));
},
/**

Powered by Google App Engine
This is Rietveld 408576698