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

Unified Diff: Source/web/WebSharedWorkerImpl.cpp

Issue 360233005: Replace 'ResourceRequest::TargetType' with 'ResourceRequest::RequestContext'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Uninitialized === crash. :( Created 6 years, 6 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
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.cpp ('k') | public/platform/WebURLRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSharedWorkerImpl.cpp
diff --git a/Source/web/WebSharedWorkerImpl.cpp b/Source/web/WebSharedWorkerImpl.cpp
index b36029b4be8659ac126feb7ecafe6085d614ab0c..4758481aa70023f62b29216b1cb8fe6a0517753b 100644
--- a/Source/web/WebSharedWorkerImpl.cpp
+++ b/Source/web/WebSharedWorkerImpl.cpp
@@ -58,6 +58,7 @@
#include "public/platform/WebMessagePortChannel.h"
#include "public/platform/WebString.h"
#include "public/platform/WebURL.h"
+#include "public/platform/WebURLRequest.h"
#include "public/web/WebFrame.h"
#include "public/web/WebSettings.h"
#include "public/web/WebView.h"
@@ -92,7 +93,7 @@ public:
ASSERT(loadingContext);
m_receiveResponseCallback = receiveResponseCallback;
m_finishCallback = finishCallback;
- m_scriptLoader->setTargetType(ResourceRequest::TargetIsSharedWorker);
+ m_scriptLoader->setRequestContext(blink::WebURLRequest::RequestContextSharedWorker);
m_scriptLoader->loadAsynchronously(
*loadingContext, scriptURL, DenyCrossOriginRequests, this);
}
« no previous file with comments | « Source/web/WebEmbeddedWorkerImpl.cpp ('k') | public/platform/WebURLRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698