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

Unified Diff: content/browser/push_messaging_message_filter.cc

Issue 658783002: Split PushMessagingStatus enum according to use case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update comment Created 6 years, 2 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/browser/push_messaging_message_filter.h ('k') | content/browser/push_messaging_router.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/push_messaging_message_filter.cc
diff --git a/content/browser/push_messaging_message_filter.cc b/content/browser/push_messaging_message_filter.cc
index 01193c14a34d554fc5024f06ff7a5475a4bcedc0..f0c3a11d445be3e54899e0208d9d8b3b33fc93cf 100644
--- a/content/browser/push_messaging_message_filter.cc
+++ b/content/browser/push_messaging_message_filter.cc
@@ -53,7 +53,7 @@ void PushMessagingMessageFilter::OnRegister(int render_frame_id,
Send(new PushMessagingMsg_RegisterError(
render_frame_id,
callbacks_id,
- PUSH_MESSAGING_STATUS_REGISTRATION_FAILED_NO_SERVICE_WORKER));
+ PUSH_REGISTRATION_STATUS_NO_SERVICE_WORKER));
return;
}
BrowserThread::PostTask(
@@ -81,7 +81,7 @@ void PushMessagingMessageFilter::DoRegister(
Send(new PushMessagingMsg_RegisterError(
render_frame_id,
callbacks_id,
- PUSH_MESSAGING_STATUS_REGISTRATION_FAILED_SERVICE_NOT_AVAILABLE));
+ PUSH_REGISTRATION_STATUS_SERVICE_NOT_AVAILABLE));
return;
}
service()->Register(origin,
@@ -101,9 +101,9 @@ void PushMessagingMessageFilter::DidRegister(
int callbacks_id,
const GURL& push_endpoint,
const std::string& push_registration_id,
- PushMessagingStatus status) {
+ PushRegistrationStatus status) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
- if (status == PUSH_MESSAGING_STATUS_OK) {
+ if (status == PUSH_REGISTRATION_STATUS_SUCCESS) {
Send(new PushMessagingMsg_RegisterSuccess(
render_frame_id, callbacks_id, push_endpoint, push_registration_id));
} else {
« no previous file with comments | « content/browser/push_messaging_message_filter.h ('k') | content/browser/push_messaging_router.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698