summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/engine/nudge_source.cc
blob: c8942f77b8f745602b4872c4982ae8bf8a332d12 (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) 2011 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 "chrome/browser/sync/engine/nudge_source.h"

#include "base/logging.h"

namespace browser_sync {

#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_CONTINUATION);
  };
  NOTREACHED();
  return "";
}

#undef ENUM_CASE

}  // namespace browser_sync