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

Unified Diff: net/base/network_quality_estimator.h

Issue 1318033002: Returning const ref instead of const value in CachedNetworkQuality::network_quality (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/network_quality_estimator.h
diff --git a/net/base/network_quality_estimator.h b/net/base/network_quality_estimator.h
index a32264f89703e90cfb600f25f82dad5ebbf8b6cc..e244eb3d3763ceb7ecd8497fa9f5b9f6d6bc6e90 100644
--- a/net/base/network_quality_estimator.h
+++ b/net/base/network_quality_estimator.h
@@ -196,7 +196,7 @@ class NET_EXPORT_PRIVATE NetworkQualityEstimator
~CachedNetworkQuality();
// Returns the network quality associated with this cached entry.
- const NetworkQuality network_quality() const { return network_quality_; }
+ const NetworkQuality& network_quality() const { return network_quality_; }
// Returns true if this cache entry was updated before
// |cached_network_quality|.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698