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

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

Issue 2807343002: Rename ScriptResource/WorkerScriptLoader::Script() to SourceText() (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
index 30b87ee1ad70500742c9219b542f11633ac9863c..9f0e0963d6edaa02f0cde45b4c88bd069791d8ba 100644
--- a/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
@@ -347,8 +347,8 @@ void WebSharedWorkerImpl::OnScriptLoaderFinished() {
WTF::WrapUnique(new WorkerSettings(document->GetSettings()));
std::unique_ptr<WorkerThreadStartupData> startup_data =
WorkerThreadStartupData::Create(
- url_, loading_document_->UserAgent(), main_script_loader_->Script(),
- nullptr, start_mode,
+ url_, loading_document_->UserAgent(),
+ main_script_loader_->SourceText(), nullptr, start_mode,
content_security_policy ? content_security_policy->Headers().get()
: nullptr,
main_script_loader_->GetReferrerPolicy(), starter_origin,
@@ -370,7 +370,7 @@ void WebSharedWorkerImpl::OnScriptLoaderFinished() {
worker_thread_ =
SharedWorkerThread::Create(name_, loader_proxy_, *reporting_proxy_);
probe::scriptImported(loading_document_, main_script_loader_->Identifier(),
- main_script_loader_->Script());
+ main_script_loader_->SourceText());
main_script_loader_.Clear();
GetWorkerThread()->Start(std::move(startup_data),
« no previous file with comments | « third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698