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

Unified Diff: net/tools/dump_cache/url_utilities.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/tools/dump_cache/url_utilities.cc
diff --git a/net/tools/dump_cache/url_utilities.cc b/net/tools/dump_cache/url_utilities.cc
index 76044943ce744a6aca8a54d3286973db2457ebc3..fc996d867f857c5603b13b5f73d54ebcafb4d369 100644
--- a/net/tools/dump_cache/url_utilities.cc
+++ b/net/tools/dump_cache/url_utilities.cc
@@ -18,9 +18,8 @@ std::string UrlUtilities::GetUrlHost(const std::string& url) {
b += 2;
size_t next_slash = url.find_first_of('/', b);
size_t next_colon = url.find_first_of(':', b);
- if (next_slash != std::string::npos
- && next_colon != std::string::npos
- && next_colon < next_slash) {
+ if (next_slash != std::string::npos && next_colon != std::string::npos &&
+ next_colon < next_slash) {
return std::string(url, b, next_colon - b);
}
if (next_slash == std::string::npos) {
@@ -52,7 +51,7 @@ std::string UrlUtilities::GetUrlPath(const std::string& url) {
if (b == std::string::npos)
return "/";
- size_t e = url.find("#", b+1);
+ size_t e = url.find("#", b + 1);
if (e != std::string::npos)
return std::string(url, b, (e - b));
return std::string(url, b);
@@ -123,4 +122,3 @@ std::string UrlUtilities::Unescape(const std::string& escaped_url) {
}
} // namespace net
-

Powered by Google App Engine
This is Rietveld 408576698