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

Unified Diff: net/base/net_errors.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 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 a9d1443c913003615f2d4742deb06ecc6bf8d512..12399f30304d85c9729743eb5f4040d35591381b 100644
--- a/net/base/net_errors.cc
+++ b/net/base/net_errors.cc
@@ -30,18 +30,18 @@ const char* ErrorToString(int error) {
switch (error) {
#define NET_ERROR(label, value) \
- case ERR_ ## label: \
- return "net::" STRINGIZE_NO_EXPANSION(ERR_ ## label);
+ case ERR_##label: \
+ return "net::" STRINGIZE_NO_EXPANSION(ERR_##label);
#include "net/base/net_error_list.h"
#undef NET_ERROR
- default:
- return "net::<unknown>";
+ default:
+ return "net::<unknown>";
}
}
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