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

Unified Diff: content/browser/service_worker/embedded_worker_instance.cc

Issue 1908313003: Shows the error message while fetching the SW script in the DevTools console. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated falken's comment Created 4 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: content/browser/service_worker/embedded_worker_instance.cc
diff --git a/content/browser/service_worker/embedded_worker_instance.cc b/content/browser/service_worker/embedded_worker_instance.cc
index bbc663e5152407e128d7699f58d341a5a82601a3..cc06e0f322504ea4aba5a6cb4ffbeac5292ed371 100644
--- a/content/browser/service_worker/embedded_worker_instance.cc
+++ b/content/browser/service_worker/embedded_worker_instance.cc
@@ -809,6 +809,14 @@ base::TimeDelta EmbeddedWorkerInstance::UpdateStepTime() {
return duration;
}
+void EmbeddedWorkerInstance::AddMessageToConsole(ConsoleMessageLevel level,
+ const std::string& message) {
+ if (status_ != RUNNING && status_ != STARTING)
+ return;
+ registry_->Send(process_id(), new EmbeddedWorkerMsg_AddMessageToConsole(
+ embedded_worker_id_, level, message));
+}
+
// static
std::string EmbeddedWorkerInstance::StatusToString(Status status) {
switch (status) {

Powered by Google App Engine
This is Rietveld 408576698