summaryrefslogtreecommitdiffstats
path: root/sync/engine/nudge_source.cc
blob: 62a24091e59a32f56918ebaf5a1c3dfd674d53a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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/engine/nudge_source.h"

#include "base/logging.h"

namespace syncer {

#define ENUM_CASE(x) case x: return #x; break

const char* GetNudgeSourceString(NudgeSource nudge_source) {
  switch (nudge_source) {
    ENUM_CASE(NUDGE_SOURCE_UNKNOWN);
    ENUM_CASE(NUDGE_SOURCE_NOTIFICATION);
    ENUM_CASE(NUDGE_SOURCE_LOCAL);
    ENUM_CASE(NUDGE_SOURCE_LOCAL_REFRESH);
  };
  NOTREACHED();
  return "";
}

#undef ENUM_CASE

}  // namespace syncer