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

Unified Diff: sync/notifier/notifications_disabled_reason.cc

Issue 10916131: [Invalidations] Add GetInvalidatorState() to Invalidator{,Frontend} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android Created 8 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 | « sync/notifier/notifications_disabled_reason.h ('k') | sync/notifier/p2p_invalidator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/notifier/notifications_disabled_reason.cc
diff --git a/sync/notifier/notifications_disabled_reason.cc b/sync/notifier/notifications_disabled_reason.cc
deleted file mode 100644
index 8c1a1aaadb63fab945cbe47727da9325d5708317..0000000000000000000000000000000000000000
--- a/sync/notifier/notifications_disabled_reason.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sync/notifier/notifications_disabled_reason.h"
-
-#include "base/logging.h"
-
-namespace syncer {
-
-const char* NotificationsDisabledReasonToString(
- NotificationsDisabledReason reason) {
- switch (reason) {
- case NO_NOTIFICATION_ERROR:
- return "NO_NOTIFICATION_ERROR";
- case TRANSIENT_NOTIFICATION_ERROR:
- return "TRANSIENT_NOTIFICATION_ERROR";
- case NOTIFICATION_CREDENTIALS_REJECTED:
- return "NOTIFICATION_CREDENTIALS_REJECTED";
- default:
- NOTREACHED();
- return "UNKNOWN";
- }
-}
-
-NotificationsDisabledReason FromNotifierReason(
- notifier::NotificationsDisabledReason reason) {
- switch (reason) {
- case notifier::NO_NOTIFICATION_ERROR:
- return NO_NOTIFICATION_ERROR;
- case notifier::TRANSIENT_NOTIFICATION_ERROR:
- return TRANSIENT_NOTIFICATION_ERROR;
- case notifier::NOTIFICATION_CREDENTIALS_REJECTED:
- return NOTIFICATION_CREDENTIALS_REJECTED;
- default:
- NOTREACHED();
- return TRANSIENT_NOTIFICATION_ERROR;
- }
-}
-
-notifier::NotificationsDisabledReason ToNotifierReasonForTest(
- NotificationsDisabledReason reason) {
- switch (reason) {
- case NO_NOTIFICATION_ERROR:
- return notifier::NO_NOTIFICATION_ERROR;
- case TRANSIENT_NOTIFICATION_ERROR:
- return notifier::TRANSIENT_NOTIFICATION_ERROR;
- case NOTIFICATION_CREDENTIALS_REJECTED:
- return notifier::NOTIFICATION_CREDENTIALS_REJECTED;
- default:
- NOTREACHED();
- return notifier::TRANSIENT_NOTIFICATION_ERROR;
- }
-}
-
-} // namespace syncer
« no previous file with comments | « sync/notifier/notifications_disabled_reason.h ('k') | sync/notifier/p2p_invalidator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698