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

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

Issue 2627723004: ServiceWorker: adding a crash key to check if a new process is launched (Closed)
Patch Set: Don't record is_new_process when process hasn't been allocated Created 3 years, 11 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 | « content/browser/service_worker/embedded_worker_instance.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_dispatcher_host.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index c0e32cee57284480dc9383c33efd166ab64c10c8..e0574c1ca11f205994ffc558110a986f26c6f0ff 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -36,6 +36,7 @@
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/public/common/browser_side_navigation_policy.h"
+#include "content/public/common/child_process_host.h"
#include "content/public/common/content_client.h"
#include "content/public/common/origin_util.h"
#include "ipc/ipc_message_macros.h"
@@ -1087,6 +1088,15 @@ void ServiceWorkerDispatcherHost::OnSetHostedVersionId(int provider_id,
base::debug::ScopedCrashKey scope_provider_host_pid(
"swdh_set_hosted_version_host_pid",
base::IntToString(provider_host->process_id()));
+ if (version->embedded_worker()->process_id() !=
+ ChildProcessHost::kInvalidUniqueID) {
+ base::debug::ScopedCrashKey scope_is_new_process(
+ "swdh_set_hosted_version_is_new_process",
+ version->embedded_worker()->is_new_process() ? "true" : "false");
+ }
+ base::debug::ScopedCrashKey scope_worker_restart_count(
+ "swdh_set_hosted_version_restart_count",
+ base::IntToString(version->embedded_worker()->restart_count()));
bad_message::ReceivedBadMessage(
this, bad_message::SWDH_SET_HOSTED_VERSION_PROCESS_MISMATCH);
return;
« no previous file with comments | « content/browser/service_worker/embedded_worker_instance.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698