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

Unified Diff: media/blink/buffered_resource_loader.h

Issue 1527673002: Cleanup: return by const reference instead of value in BufferedResourceLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added my name to the AUTHORS file Created 5 years 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/buffered_resource_loader.h
diff --git a/media/blink/buffered_resource_loader.h b/media/blink/buffered_resource_loader.h
index f55569edcef61e94e8211b23da8395bed4b0f891..942949e6024d1c8345eb6c641721294ca5a4b837 100644
--- a/media/blink/buffered_resource_loader.h
+++ b/media/blink/buffered_resource_loader.h
@@ -208,7 +208,7 @@ class MEDIA_BLINK_EXPORT BufferedResourceLoader
// Returns the original URL of the response. If the request is redirected to
// another URL it is the URL after redirected. If the response is generated in
// a Service Worker it is empty.
- const GURL response_original_url() const { return response_original_url_; }
+ const GURL& response_original_url() const { return response_original_url_; }
// Returns an estimate of the amount of memory owned by the resource loader.
int64_t GetMemoryUsage() const;
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698