blob: 0b255f010673aa9e5692e6aa5b452e4797bb7f1f [file] [log] [blame]
[email protected]dd8deb72013-12-12 11:41:441// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/sync_file_system/sync_action.h"
6
7#include "base/logging.h"
8
9namespace sync_file_system {
10
11const char* SyncActionToString(SyncAction action) {
12 switch (action) {
13 case SYNC_ACTION_NONE:
14 return "None";
15 case SYNC_ACTION_ADDED:
16 return "Added";
17 case SYNC_ACTION_UPDATED:
18 return "Updated";
19 case SYNC_ACTION_DELETED:
20 return "Deleted";
21 }
22
23 NOTREACHED();
24 return "Unknown SyncAction";
25}
26
27} // namespace sync_file_system