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 "chrome/browser/chromeos/drive/file_errors.h" | 5 #include "components/drive/file_errors.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace drive { | 9 namespace drive { |
10 | 10 |
11 std::string FileErrorToString(FileError error) { | 11 std::string FileErrorToString(FileError error) { |
12 switch (error) { | 12 switch (error) { |
13 case FILE_ERROR_OK: | 13 case FILE_ERROR_OK: |
14 return "FILE_ERROR_OK"; | 14 return "FILE_ERROR_OK"; |
15 | 15 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 case google_apis::DRIVE_NO_CONNECTION: | 158 case google_apis::DRIVE_NO_CONNECTION: |
159 return FILE_ERROR_NO_CONNECTION; | 159 return FILE_ERROR_NO_CONNECTION; |
160 case google_apis::DRIVE_NO_SPACE: | 160 case google_apis::DRIVE_NO_SPACE: |
161 return FILE_ERROR_NO_SERVER_SPACE; | 161 return FILE_ERROR_NO_SERVER_SPACE; |
162 default: | 162 default: |
163 return FILE_ERROR_FAILED; | 163 return FILE_ERROR_FAILED; |
164 } | 164 } |
165 } | 165 } |
166 | 166 |
167 } // namespace drive | 167 } // namespace drive |
OLD | NEW |