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

Unified Diff: third_party/WebKit/Source/platform/network/HTTPParsers.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Source/platform/network/HTTPParsers.cpp
diff --git a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
index 91b38a991c4799bf83713d2ed3c4382dd46b6c63..02f45ec1c894de248b19d7a7f023d613537c2907 100644
--- a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
+++ b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
@@ -454,8 +454,9 @@ void findCharsetInMediaType(const String& mediaType,
// name, but there may be others
continue;
- while (pos != length && (mediaType[pos] <= ' ' || mediaType[pos] == '"' ||
- mediaType[pos] == '\''))
+ while (pos != length &&
+ (mediaType[pos] <= ' ' || mediaType[pos] == '"' ||
+ mediaType[pos] == '\''))
++pos;
// we don't handle spaces within quoted parameter values, because charset
@@ -639,8 +640,9 @@ static void parseCacheHeader(const String& header,
if (nextDoubleQuotePosition != kNotFound) {
// Store the value as a quoted string without quotes
result.push_back(std::pair<String, String>(
- directive, value.substring(1, nextDoubleQuotePosition - 1)
- .stripWhiteSpace()));
+ directive,
+ value.substring(1, nextDoubleQuotePosition - 1)
+ .stripWhiteSpace()));
pos +=
(safeHeader.find('"', pos) - pos) + nextDoubleQuotePosition + 1;
// Move past next comma, if there is one

Powered by Google App Engine
This is Rietveld 408576698