OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 "google_apis/drive/drive_api_error_codes.h" | 5 #include "google_apis/drive/drive_api_error_codes.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 | 9 |
10 namespace google_apis { | 10 namespace google_apis { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 case DRIVE_NOT_READY: | 83 case DRIVE_NOT_READY: |
84 return"DRIVE_NOT_READY"; | 84 return"DRIVE_NOT_READY"; |
85 | 85 |
86 case DRIVE_NO_SPACE: | 86 case DRIVE_NO_SPACE: |
87 return"DRIVE_NO_SPACE"; | 87 return"DRIVE_NO_SPACE"; |
88 } | 88 } |
89 | 89 |
90 return "UNKNOWN_ERROR_" + base::IntToString(error); | 90 return "UNKNOWN_ERROR_" + base::IntToString(error); |
91 } | 91 } |
92 | 92 |
| 93 bool IsSuccessfulDriveApiErrorCode(DriveApiErrorCode error) { |
| 94 return 200 <= error && error <= 299; |
| 95 } |
| 96 |
93 } // namespace google_apis | 97 } // namespace google_apis |
OLD | NEW |