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

Unified Diff: public/platform/WebPushProvider.h

Issue 800503002: PushRegistration.unregister(), cleanups and more tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@push_unregister
Patch Set: Created 6 years 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: public/platform/WebPushProvider.h
diff --git a/public/platform/WebPushProvider.h b/public/platform/WebPushProvider.h
index 43f1f78afe1b54e61d7fd716493de5d66667c083..76f28892099b80cce4e8f8c628c80b858578c172 100644
--- a/public/platform/WebPushProvider.h
+++ b/public/platform/WebPushProvider.h
@@ -41,14 +41,7 @@ public:
// Takes ownership if the WebPushUnregisterCallbacks.
// Does not take ownership of the WebServiceWorkerRegistration.
- virtual void unregister(WebServiceWorkerRegistration*, WebPushUnregisterCallbacks* callback)
- {
- // FIXME: this should call BLINK_ASSERT_NOT_REACHED() when Chromium will
- // have an implementation.
- bool result = true;
- callback->onSuccess(&result);
- delete callback;
- }
+ virtual void unregister(WebServiceWorkerRegistration*, WebPushUnregisterCallbacks* callback) { BLINK_ASSERT_NOT_REACHED(); }
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698