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

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

Issue 501453002: Decouple script_url from ServiceWorkerRegistration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync after major collision Created 6 years, 4 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/service_worker_internals_ui.cc
diff --git a/content/browser/service_worker/service_worker_internals_ui.cc b/content/browser/service_worker/service_worker_internals_ui.cc
index 566f3ac5f7047815c4cc5687671d6935dad0e152..5a2378ff7eb67099ef28dad1198d202c31998fbb 100644
--- a/content/browser/service_worker/service_worker_internals_ui.cc
+++ b/content/browser/service_worker/service_worker_internals_ui.cc
@@ -197,6 +197,7 @@ void UpdateVersionInfo(const ServiceWorkerVersionInfo& version,
info->SetString("status", "REDUNDANT");
break;
}
+ info->SetString("script_url", version.script_url.spec());
info->SetString("version_id", base::Int64ToString(version.version_id));
info->SetInteger("process_id", version.process_id);
info->SetInteger("thread_id", version.thread_id);
@@ -213,7 +214,6 @@ ListValue* GetRegistrationListValue(
const ServiceWorkerRegistrationInfo& registration = *it;
DictionaryValue* registration_info = new DictionaryValue();
registration_info->SetString("scope", registration.pattern.spec());
- registration_info->SetString("script_url", registration.script_url.spec());
registration_info->SetString(
"registration_id", base::Int64ToString(registration.registration_id));

Powered by Google App Engine
This is Rietveld 408576698