Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(234)

Side by Side Diff: components/drive/file_errors.cc

Issue 1246753003: Move a subset of chrome/browser/chromeos/drive into components/drive (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698