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

Unified Diff: content/renderer/shared_worker/embedded_shared_worker_stub.cc

Issue 2596173002: Use explicit WebString <-> string conversion methods for workers (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
Index: content/renderer/shared_worker/embedded_shared_worker_stub.cc
diff --git a/content/renderer/shared_worker/embedded_shared_worker_stub.cc b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
index 963b11dedfadfe875ceaa31d62f1c958368a36ae..1b423bbcd31510e53c59c1f0ddfef54c9e497f7f 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -148,8 +148,10 @@ EmbeddedSharedWorkerStub::EmbeddedSharedWorkerStub(
}
worker_devtools_agent_.reset(
new SharedWorkerDevToolsAgent(route_id, impl_));
- impl_->startWorkerContext(url, name_, content_security_policy,
- security_policy_type, creation_address_space);
+ impl_->startWorkerContext(
+ url, blink::WebString::fromUTF16(name_),
+ blink::WebString::fromUTF16(content_security_policy),
+ security_policy_type, creation_address_space);
}
EmbeddedSharedWorkerStub::~EmbeddedSharedWorkerStub() {

Powered by Google App Engine
This is Rietveld 408576698