15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 25d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// found in the LICENSE file. 45d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "chrome/browser/sync_file_system/sync_action.h" 65d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "base/logging.h" 85d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace sync_file_system { 105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 115d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)const char* SyncActionToString(SyncAction action) { 125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) switch (action) { 135d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) case SYNC_ACTION_NONE: 145d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return "None"; 155d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) case SYNC_ACTION_ADDED: 165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return "Added"; 175d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) case SYNC_ACTION_UPDATED: 185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return "Updated"; 195d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) case SYNC_ACTION_DELETED: 205d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return "Deleted"; 215d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) } 225d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 235d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) NOTREACHED(); 245d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return "Unknown SyncAction"; 255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} 265d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) 275d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} // namespace sync_file_system 28