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

Unified Diff: content/shell/browser/layout_test/layout_test_push_messaging_service.cc

Issue 778243002: Push API: Return cached registration if available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@store2
Patch Set: Rebase 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
« no previous file with comments | « content/public/common/push_messaging_status.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/layout_test/layout_test_push_messaging_service.cc
diff --git a/content/shell/browser/layout_test/layout_test_push_messaging_service.cc b/content/shell/browser/layout_test/layout_test_push_messaging_service.cc
index cbbcb2cc170c39ab72281ab10516cfbad2a1d332..e6639c3bd68c41edd1a33adc884ac553f892a306 100644
--- a/content/shell/browser/layout_test/layout_test_push_messaging_service.cc
+++ b/content/shell/browser/layout_test/layout_test_push_messaging_service.cc
@@ -47,7 +47,8 @@ void LayoutTestPushMessagingService::RegisterFromWorker(
const PushMessagingService::RegisterCallback& callback) {
if (GetPermissionStatus(requesting_origin, requesting_origin) ==
blink::WebPushPermissionStatusGranted) {
- callback.Run("layoutTestRegistrationId", PUSH_REGISTRATION_STATUS_SUCCESS);
+ callback.Run("layoutTestRegistrationId",
+ PUSH_REGISTRATION_STATUS_SUCCESS_FROM_PUSH_SERVICE);
} else {
callback.Run("registration_id", PUSH_REGISTRATION_STATUS_PERMISSION_DENIED);
}
« no previous file with comments | « content/public/common/push_messaging_status.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698