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

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

Issue 685203003: DevTools: Get rid of synchronous XHRs in the frontend code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Annotate code, fix tests Created 6 years, 1 month 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 | « Source/devtools/front_end/Runtime.js ('k') | Source/devtools/front_end/common/WorkerRuntime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/bindings/TempFile.js
diff --git a/Source/devtools/front_end/bindings/TempFile.js b/Source/devtools/front_end/bindings/TempFile.js
index 09f48cff81b4bd5731a39af11804be97f0bb507a..87f38b504436099e7ab49a61d9f891ecf91efe92 100644
--- a/Source/devtools/front_end/bindings/TempFile.js
+++ b/Source/devtools/front_end/bindings/TempFile.js
@@ -364,7 +364,7 @@ WebInspector.DeferredTempFile.prototype = {
WebInspector.TempStorageCleaner = function()
{
try {
- this._worker = Runtime.startSharedWorker("temp_storage_shared_worker", "TempStorageCleaner");
+ this._worker = new WorkerRuntime.Worker("temp_storage_shared_worker", "TempStorageCleaner");
this._worker.onerror = this._handleError.bind(this);
this._callbacks = [];
this._worker.port.onmessage = this._handleMessage.bind(this);
« no previous file with comments | « Source/devtools/front_end/Runtime.js ('k') | Source/devtools/front_end/common/WorkerRuntime.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698