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

Unified Diff: content/browser/background_sync/background_sync_manager.cc

Issue 1353613002: [BackgroundSync] Clean up some style nits and unnecessary checks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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 | « no previous file | content/browser/background_sync/background_sync_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_sync/background_sync_manager.cc
diff --git a/content/browser/background_sync/background_sync_manager.cc b/content/browser/background_sync/background_sync_manager.cc
index 1a0432bc11391ac396d36ddc91baf18590dea2f1..938a87b92513f166f18332679e7dbe667a7f0bcb 100644
--- a/content/browser/background_sync/background_sync_manager.cc
+++ b/content/browser/background_sync/background_sync_manager.cc
@@ -1034,8 +1034,9 @@ void BackgroundSyncManager::EventCompleteImpl(
RefCountedRegistration* active_registration =
LookupActiveRegistration(service_worker_id, key);
if (active_registration &&
- active_registration->value()->id() == registration->id())
+ active_registration->value()->id() == registration->id()) {
RemoveActiveRegistration(service_worker_id, key);
+ }
}
} else {
// TODO(jkarlin): Add support for running periodic syncs. (crbug.com/479674)
« no previous file with comments | « no previous file | content/browser/background_sync/background_sync_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698