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

Unified Diff: chrome/browser/sync/notification_method.cc

Issue 2827014: Implemented initial version of server-issued notification client. (Closed)
Patch Set: Added DEPS Created 10 years, 6 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 | « chrome/browser/sync/notification_method.h ('k') | chrome/browser/sync/notifier/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/notification_method.cc
diff --git a/chrome/browser/sync/notification_method.cc b/chrome/browser/sync/notification_method.cc
index aec4a9c47a7ea8a7486a572bb96952f3248c3697..9c00344e6d8d23e6439427577b989527b02fa46f 100644
--- a/chrome/browser/sync/notification_method.cc
+++ b/chrome/browser/sync/notification_method.cc
@@ -24,6 +24,9 @@ std::string NotificationMethodToString(
case NOTIFICATION_NEW:
return "NOTIFICATION_NEW";
break;
+ case NOTIFICATION_SERVER:
+ return "NOTIFICATION_SERVER";
+ break;
default:
LOG(WARNING) << "Unknown value for notification method: "
<< notification_method;
@@ -39,6 +42,8 @@ NotificationMethod StringToNotificationMethod(const std::string& str) {
return NOTIFICATION_TRANSITIONAL;
} else if (str == "new") {
return NOTIFICATION_NEW;
+ } else if (str == "server") {
+ return NOTIFICATION_SERVER;
}
LOG(WARNING) << "Unknown notification method \"" << str
<< "\"; using method "
« no previous file with comments | « chrome/browser/sync/notification_method.h ('k') | chrome/browser/sync/notifier/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698