| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "sync/internal_api/public/engine/model_safe_worker.h" | 5 #include "sync/internal_api/public/engine/model_safe_worker.h" |
| 6 | 6 |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 std::string ModelSafeGroupToString(ModelSafeGroup group) { | 63 std::string ModelSafeGroupToString(ModelSafeGroup group) { |
| 64 switch (group) { | 64 switch (group) { |
| 65 case GROUP_UI: | 65 case GROUP_UI: |
| 66 return "GROUP_UI"; | 66 return "GROUP_UI"; |
| 67 case GROUP_DB: | 67 case GROUP_DB: |
| 68 return "GROUP_DB"; | 68 return "GROUP_DB"; |
| 69 case GROUP_FILE: | 69 case GROUP_FILE: |
| 70 return "GROUP_FILE"; | 70 return "GROUP_FILE"; |
| 71 case GROUP_HISTORY: | 71 case GROUP_HISTORY: |
| 72 return "GROUP_HISTORY"; | 72 return "GROUP_HISTORY"; |
| 73 case GROUP_PASSWORD: |
| 74 return "GROUP_PASSWORD"; |
| 73 case GROUP_PASSIVE: | 75 case GROUP_PASSIVE: |
| 74 return "GROUP_PASSIVE"; | 76 return "GROUP_PASSIVE"; |
| 75 case GROUP_PASSWORD: | 77 case GROUP_CONTROL: |
| 76 return "GROUP_PASSWORD"; | 78 return "GROUP_CONTROL"; |
| 77 default: | 79 default: |
| 78 NOTREACHED(); | 80 NOTREACHED(); |
| 79 return "INVALID"; | 81 return "INVALID"; |
| 80 } | 82 } |
| 81 } | 83 } |
| 82 | 84 |
| 83 ModelSafeWorker::~ModelSafeWorker() {} | 85 ModelSafeWorker::~ModelSafeWorker() {} |
| 84 | 86 |
| 85 } // namespace syncer | 87 } // namespace syncer |
| OLD | NEW |