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

Unified Diff: net/http/http_auth_handler_basic.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/http/http_auth_handler_basic.cc
diff --git a/net/http/http_auth_handler_basic.cc b/net/http/http_auth_handler_basic.cc
index eace1dfa4d1e08c02905e2ad771358868255d9e0..bfe9c225338dbfce25e4251ddb64464e80b987b6 100644
--- a/net/http/http_auth_handler_basic.cc
+++ b/net/http/http_auth_handler_basic.cc
@@ -80,14 +80,15 @@ HttpAuth::AuthorizationResult HttpAuthHandlerBasic::HandleAnotherChallenge(
std::string realm;
if (!ParseRealm(*challenge, &realm))
return HttpAuth::AUTHORIZATION_RESULT_INVALID;
- return (realm_ != realm)?
- HttpAuth::AUTHORIZATION_RESULT_DIFFERENT_REALM:
- HttpAuth::AUTHORIZATION_RESULT_REJECT;
+ return (realm_ != realm) ? HttpAuth::AUTHORIZATION_RESULT_DIFFERENT_REALM
+ : HttpAuth::AUTHORIZATION_RESULT_REJECT;
}
int HttpAuthHandlerBasic::GenerateAuthTokenImpl(
- const AuthCredentials* credentials, const HttpRequestInfo*,
- const CompletionCallback&, std::string* auth_token) {
+ const AuthCredentials* credentials,
+ const HttpRequestInfo*,
+ const CompletionCallback&,
+ std::string* auth_token) {
DCHECK(credentials);
// TODO(eroman): is this the right encoding of username/password?
std::string base64_username_password;

Powered by Google App Engine
This is Rietveld 408576698