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

Unified Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.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
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 1fde9f53814c4004fb4c503823a3a1830349c04a..6acd6833d14aa1989cea9188bbb255a3c6f07ea9 100644
--- a/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
+++ b/third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
@@ -395,7 +395,7 @@ void WebEmbeddedWorkerImpl::OnScriptLoaderFinished() {
DEFINE_STATIC_LOCAL(CustomCountHistogram, script_size_histogram,
("ServiceWorker.ScriptSize", 1000, 5000000, 50));
- script_size_histogram.Count(main_script_loader_->Script().length());
+ script_size_histogram.Count(main_script_loader_->SourceText().length());
if (main_script_loader_->CachedMetadata()) {
DEFINE_STATIC_LOCAL(
CustomCountHistogram, script_cached_metadata_size_histogram,
@@ -455,7 +455,7 @@ void WebEmbeddedWorkerImpl::StartWorkerThread() {
std::unique_ptr<WorkerThreadStartupData> startup_data =
WorkerThreadStartupData::Create(
script_url, worker_start_data_.user_agent,
- main_script_loader_->Script(),
+ main_script_loader_->SourceText(),
main_script_loader_->ReleaseCachedMetadata(), start_mode,
document->GetContentSecurityPolicy()->Headers().get(),
main_script_loader_->GetReferrerPolicy(), starter_origin,
« no previous file with comments | « third_party/WebKit/Source/core/workers/WorkerScriptLoader.cpp ('k') | third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698