Index: content/renderer/service_worker/embedded_worker_dispatcher.cc |
diff --git a/content/renderer/service_worker/embedded_worker_dispatcher.cc b/content/renderer/service_worker/embedded_worker_dispatcher.cc |
index d975479bd07bdfb3ef24206336a0355a0a6384f6..5ae5a0095c677301af8b515b11abec8b5e7307db 100644 |
--- a/content/renderer/service_worker/embedded_worker_dispatcher.cc |
+++ b/content/renderer/service_worker/embedded_worker_dispatcher.cc |
@@ -12,13 +12,13 @@ |
#include "content/child/thread_safe_sender.h" |
#include "content/child/worker_task_runner.h" |
#include "content/common/service_worker/embedded_worker_messages.h" |
+#include "content/public/common/user_agent.h" |
#include "content/renderer/render_thread_impl.h" |
#include "content/renderer/service_worker/embedded_worker_context_client.h" |
#include "third_party/WebKit/public/platform/WebString.h" |
#include "third_party/WebKit/public/platform/WebURL.h" |
#include "third_party/WebKit/public/web/WebEmbeddedWorker.h" |
#include "third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h" |
-#include "webkit/common/user_agent/user_agent.h" |
namespace content { |
@@ -73,8 +73,7 @@ void EmbeddedWorkerDispatcher::OnStartWorker( |
blink::WebEmbeddedWorkerStartData start_data; |
start_data.scriptURL = script_url; |
- start_data.userAgent = |
- base::UTF8ToUTF16(webkit_glue::GetUserAgent(script_url)); |
+ start_data.userAgent = base::UTF8ToUTF16(GetUserAgent(script_url)); |
start_data.startMode = blink::WebEmbeddedWorkerStartModeDontPauseOnStart; |
wrapper->worker()->startWorkerContext(start_data); |