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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp

Issue 2326153003: Rename referrerPolicy() methods to getReferrerPolicy(). (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
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | third_party/WebKit/Source/web/WebHistoryItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
index aa8a964dcc230c17a0ab5f0621d06dfc0a2a1ef9..da1fc20eae6ed67caa20a063892d7344eb2a368f 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -434,8 +434,10 @@ void WebEmbeddedWorkerImpl::startWorkerThread() {
// ServiceWorkerGlobalScope.
document->initContentSecurityPolicy(
m_mainScriptLoader->releaseContentSecurityPolicy());
- if (!m_mainScriptLoader->referrerPolicy().isNull())
- document->parseAndSetReferrerPolicy(m_mainScriptLoader->referrerPolicy());
+ if (!m_mainScriptLoader->getReferrerPolicy().isNull()) {
+ document->parseAndSetReferrerPolicy(
+ m_mainScriptLoader->getReferrerPolicy());
+ }
KURL scriptURL = m_mainScriptLoader->url();
WorkerThreadStartMode startMode =
@@ -448,7 +450,7 @@ void WebEmbeddedWorkerImpl::startWorkerThread() {
scriptURL, m_workerStartData.userAgent, m_mainScriptLoader->script(),
m_mainScriptLoader->releaseCachedMetadata(), startMode,
document->contentSecurityPolicy()->headers().get(),
- m_mainScriptLoader->referrerPolicy(), starterOrigin, workerClients,
+ m_mainScriptLoader->getReferrerPolicy(), starterOrigin, workerClients,
m_mainScriptLoader->responseAddressSpace(),
m_mainScriptLoader->originTrialTokens(), std::move(workerSettings),
static_cast<V8CacheOptions>(m_workerStartData.v8CacheOptions));
« no previous file with comments | « third_party/WebKit/Source/web/WebDocument.cpp ('k') | third_party/WebKit/Source/web/WebHistoryItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698