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

Unified Diff: net/http/http_auth_cache.h

Issue 1105093002: Cleanup return values in http_auth (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | net/http/http_auth_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_cache.h
diff --git a/net/http/http_auth_cache.h b/net/http/http_auth_cache.h
index 1867295ddd6141ce062fa6aa1dcc3afeb2aca7bb..f05f8184d023a50fb9ae736a4db8b2d110221097 100644
--- a/net/http/http_auth_cache.h
+++ b/net/http/http_auth_cache.h
@@ -36,9 +36,7 @@ class NET_EXPORT_PRIVATE HttpAuthCache {
}
// The case-sensitive realm string of the challenge.
- const std::string realm() const {
- return realm_;
- }
+ const std::string& realm() const { return realm_; }
// The authentication scheme of the challenge.
HttpAuth::Scheme scheme() const {
@@ -46,9 +44,7 @@ class NET_EXPORT_PRIVATE HttpAuthCache {
}
// The authentication challenge.
- const std::string auth_challenge() const {
- return auth_challenge_;
- }
+ const std::string& auth_challenge() const { return auth_challenge_; }
// The login credentials.
const AuthCredentials& credentials() const {
« no previous file with comments | « no previous file | net/http/http_auth_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698