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

Unified Diff: net/base/net_errors.cc

Issue 642403002: git cl format the first third of the net/base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit Created 6 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 side-by-side diff with in-line comments
Download patch
Index: net/base/net_errors.cc
diff --git a/net/base/net_errors.cc b/net/base/net_errors.cc
index 55cdebb1ac5eebe235d19b0c85527ed14738ef4f..457d8d8436c1943a6feb0d249860cb74149b5350 100644
--- a/net/base/net_errors.cc
+++ b/net/base/net_errors.cc
@@ -35,14 +35,14 @@ std::string ErrorToShortString(int error) {
const char* error_string;
switch (error) {
#define NET_ERROR(label, value) \
- case ERR_ ## label: \
- error_string = # label; \
+ case ERR_##label: \
+ error_string = #label; \
break;
#include "net/base/net_error_list.h"
#undef NET_ERROR
- default:
- NOTREACHED();
- error_string = "<unknown>";
+ default:
+ NOTREACHED();
+ error_string = "<unknown>";
}
return std::string("ERR_") + error_string;
}
@@ -69,8 +69,8 @@ bool IsClientCertificateError(int error) {
}
std::vector<int> GetAllErrorCodesForUma() {
- return base::CustomHistogram::ArrayToCustomRanges(
- kAllErrorCodes, arraysize(kAllErrorCodes));
+ return base::CustomHistogram::ArrayToCustomRanges(kAllErrorCodes,
+ arraysize(kAllErrorCodes));
}
Error FileErrorToNetError(base::File::Error file_error) {

Powered by Google App Engine
This is Rietveld 408576698