summaryrefslogtreecommitdiffstats
path: root/net/http/http_auth_cache.h
diff options
context:
space:
mode:
authorpayal.pandey <payal.pandey@samsung.com>2015-04-27 23:36:01 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-28 06:35:53 +0000
commit8a0c2c45a7d9c729ca378d1791e9a88ff38f31d1 (patch)
tree98ccbb83807c8e54fc4e3c64021cfd623c143abc /net/http/http_auth_cache.h
parente0ee113f5020a7d514b68e1556fd7f080c232d87 (diff)
downloadchromium_src-8a0c2c45a7d9c729ca378d1791e9a88ff38f31d1.zip
chromium_src-8a0c2c45a7d9c729ca378d1791e9a88ff38f31d1.tar.gz
chromium_src-8a0c2c45a7d9c729ca378d1791e9a88ff38f31d1.tar.bz2
Cleanup return values in http_auth
This CL turns const by value return values into const by ref BUG=393155 Review URL: https://codereview.chromium.org/1105093002 Cr-Commit-Position: refs/heads/master@{#327239}
Diffstat (limited to 'net/http/http_auth_cache.h')
-rw-r--r--net/http/http_auth_cache.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/http/http_auth_cache.h b/net/http/http_auth_cache.h
index 1867295..f05f818 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 {