blob: 0b255f010673aa9e5692e6aa5b452e4797bb7f1f [file] [log] [blame]
// Copyright 2013 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_file_system/sync_action.h"
#include "base/logging.h"
namespace sync_file_system {
const char* SyncActionToString(SyncAction action) {
switch (action) {
case SYNC_ACTION_NONE:
return "None";
case SYNC_ACTION_ADDED:
return "Added";
case SYNC_ACTION_UPDATED:
return "Updated";
case SYNC_ACTION_DELETED:
return "Deleted";
}
NOTREACHED();
return "Unknown SyncAction";
}
} // namespace sync_file_system