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

Unified Diff: content/renderer/background_sync/background_sync_client_impl.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: Created 4 years, 12 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/renderer/background_sync/background_sync_client_impl.cc
diff --git a/content/renderer/background_sync/background_sync_client_impl.cc b/content/renderer/background_sync/background_sync_client_impl.cc
index 24630e35c24592f23132d447cd59aa910402379d..80962f14d7676c251e69a62ed51e5e85b7fa32a2 100644
--- a/content/renderer/background_sync/background_sync_client_impl.cc
+++ b/content/renderer/background_sync/background_sync_client_impl.cc
@@ -75,15 +75,15 @@ void BackgroundSyncClientImpl::SyncDidGetRegistration(
callback = it->second;
sync_callbacks_.erase(it);
- if (error != BACKGROUND_SYNC_ERROR_NONE) {
- callback.Run(SERVICE_WORKER_EVENT_STATUS_ABORTED);
+ if (error != BackgroundSyncError::NONE) {
+ callback.Run(ServiceWorkerEventStatus::ABORTED);
return;
}
ServiceWorkerContextClient* client =
ServiceWorkerContextClient::ThreadSpecificInstance();
if (!client) {
- callback.Run(SERVICE_WORKER_EVENT_STATUS_ABORTED);
+ callback.Run(ServiceWorkerEventStatus::ABORTED);
return;
}

Powered by Google App Engine
This is Rietveld 408576698