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

Unified Diff: content/common/service_worker/service_worker_type_converters.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 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/child/permissions/permission_dispatcher.cc ('k') | content/public/common/mojo_geoposition.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_worker/service_worker_type_converters.cc
diff --git a/content/common/service_worker/service_worker_type_converters.cc b/content/common/service_worker/service_worker_type_converters.cc
index 735f529a93263aa95c14e31035ce1d892829a315..cffec7399125b52d62ad5134b3cf0bbdec8f4ff3 100644
--- a/content/common/service_worker/service_worker_type_converters.cc
+++ b/content/common/service_worker/service_worker_type_converters.cc
@@ -15,11 +15,11 @@ TypeConverter<content::ServiceWorkerStatusCode,
content::ServiceWorkerEventStatus>::
Convert(content::ServiceWorkerEventStatus status) {
content::ServiceWorkerStatusCode status_code;
- if (status == content::SERVICE_WORKER_EVENT_STATUS_COMPLETED) {
+ if (status == content::ServiceWorkerEventStatus::COMPLETED) {
status_code = content::SERVICE_WORKER_OK;
- } else if (status == content::SERVICE_WORKER_EVENT_STATUS_REJECTED) {
+ } else if (status == content::ServiceWorkerEventStatus::REJECTED) {
status_code = content::SERVICE_WORKER_ERROR_EVENT_WAITUNTIL_REJECTED;
- } else if (status == content::SERVICE_WORKER_EVENT_STATUS_ABORTED) {
+ } else if (status == content::ServiceWorkerEventStatus::ABORTED) {
status_code = content::SERVICE_WORKER_ERROR_ABORT;
} else {
// We received an unexpected value back. This can theoretically happen as
« no previous file with comments | « content/child/permissions/permission_dispatcher.cc ('k') | content/public/common/mojo_geoposition.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698