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

Unified Diff: content/browser/devtools/service_worker_devtools_manager.cc

Issue 1221643014: Service Worker: Migrate to version_uuid and surface ServiceWorker.id. (Chromium 2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/devtools/service_worker_devtools_manager.cc
diff --git a/content/browser/devtools/service_worker_devtools_manager.cc b/content/browser/devtools/service_worker_devtools_manager.cc
index 0941cfc266d2950ae3e82de5033474005273ecff..ab03a25f52ca161ec8bccbb963985ec735ee2aff 100644
--- a/content/browser/devtools/service_worker_devtools_manager.cc
+++ b/content/browser/devtools/service_worker_devtools_manager.cc
@@ -15,11 +15,11 @@ namespace content {
ServiceWorkerDevToolsManager::ServiceWorkerIdentifier::ServiceWorkerIdentifier(
const ServiceWorkerContextCore* context,
base::WeakPtr<ServiceWorkerContextCore> context_weak,
- int64 version_id,
+ std::string version_uuid,
const GURL& url)
: context_(context),
context_weak_(context_weak),
- version_id_(version_id),
+ version_uuid_(version_uuid),
url_(url) {
}
@@ -27,7 +27,7 @@ ServiceWorkerDevToolsManager::ServiceWorkerIdentifier::ServiceWorkerIdentifier(
const ServiceWorkerIdentifier& other)
: context_(other.context_),
context_weak_(other.context_weak_),
- version_id_(other.version_id_),
+ version_uuid_(other.version_uuid_),
url_(other.url_) {
}
@@ -37,7 +37,7 @@ ServiceWorkerIdentifier::~ServiceWorkerIdentifier() {
bool ServiceWorkerDevToolsManager::ServiceWorkerIdentifier::Matches(
const ServiceWorkerIdentifier& other) const {
- return context_ == other.context_ && version_id_ == other.version_id_;
+ return context_ == other.context_ && version_uuid_ == other.version_uuid_;
}
// static
« no previous file with comments | « content/browser/devtools/service_worker_devtools_manager.h ('k') | content/browser/service_worker/embedded_worker_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698