1 // 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 9 namespace sync_file_system { 10 SyncActionToString(SyncAction action)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 28