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

Side by Side Diff: net/base/net_errors_posix.cc

Issue 2511683002: Remove unneeded stringprintf.h usage in chrome/ and net/ (Closed)
Patch Set: rebase Created 4 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "net/base/net_errors.h" 5 #include "net/base/net_errors.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string> 9 #include <string>
10 #include <unistd.h> 10 #include <unistd.h>
11 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/strings/stringprintf.h"
14 13
15 namespace net { 14 namespace net {
16 15
17 Error MapSystemError(logging::SystemErrorCode os_error) { 16 Error MapSystemError(logging::SystemErrorCode os_error) {
18 if (os_error != 0) 17 if (os_error != 0)
19 DVLOG(2) << "Error " << os_error; 18 DVLOG(2) << "Error " << os_error;
20 19
21 // There are numerous posix error codes, but these are the ones we thus far 20 // There are numerous posix error codes, but these are the ones we thus far
22 // find interesting. 21 // find interesting.
23 switch (os_error) { 22 switch (os_error) {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 case 0: 112 case 0:
114 return OK; 113 return OK;
115 default: 114 default:
116 LOG(WARNING) << "Unknown error " << os_error 115 LOG(WARNING) << "Unknown error " << os_error
117 << " mapped to net::ERR_FAILED"; 116 << " mapped to net::ERR_FAILED";
118 return ERR_FAILED; 117 return ERR_FAILED;
119 } 118 }
120 } 119 }
121 120
122 } // namespace net 121 } // namespace net
OLDNEW
« no previous file with comments | « chrome/test/media_router/media_router_e2e_ui_browsertest.cc ('k') | net/base/network_interfaces_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698