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

Unified Diff: net/socket_stream/socket_stream_job.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/socket_stream/socket_stream_job.cc
diff --git a/net/socket_stream/socket_stream_job.cc b/net/socket_stream/socket_stream_job.cc
index 0bd702686bd7db13b437e04f0e73f1b9973911fc..0ca96bf6219deb927f17eeb12ef113306780922b 100644
--- a/net/socket_stream/socket_stream_job.cc
+++ b/net/socket_stream/socket_stream_job.cc
@@ -14,7 +14,8 @@ namespace net {
// static
SocketStreamJob::ProtocolFactory* SocketStreamJob::RegisterProtocolFactory(
- const std::string& scheme, ProtocolFactory* factory) {
+ const std::string& scheme,
+ ProtocolFactory* factory) {
return SocketStreamJobManager::GetInstance()->RegisterProtocolFactory(
scheme, factory);
}
@@ -29,7 +30,8 @@ SocketStreamJob* SocketStreamJob::CreateSocketStreamJob(
CookieStore* cookie_store) {
GURL socket_url(url);
TransportSecurityState::DomainState domain_state;
- if (url.scheme() == "ws" && sts && sts->GetDomainState(
+ if (url.scheme() == "ws" && sts &&
+ sts->GetDomainState(
url.host(), SSLConfigService::IsSNIAvailable(ssl), &domain_state) &&
domain_state.ShouldUpgradeToSSL()) {
url::Replacements<char> replacements;
@@ -41,7 +43,8 @@ SocketStreamJob* SocketStreamJob::CreateSocketStreamJob(
socket_url, delegate, context, cookie_store);
}
-SocketStreamJob::SocketStreamJob() {}
+SocketStreamJob::SocketStreamJob() {
+}
SocketStream::UserData* SocketStreamJob::GetUserData(const void* key) const {
return socket_->GetUserData(key);
@@ -89,6 +92,7 @@ void SocketStreamJob::DetachContext() {
socket_->DetachContext();
}
-SocketStreamJob::~SocketStreamJob() {}
+SocketStreamJob::~SocketStreamJob() {
+}
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698