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

Unified Diff: chrome/browser/ui/browser_instant_controller_unittest.cc

Issue 1118443002: Replacing const by value return values into const by ref in chrome/browser/ui/ (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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_instant_controller_unittest.cc
diff --git a/chrome/browser/ui/browser_instant_controller_unittest.cc b/chrome/browser/ui/browser_instant_controller_unittest.cc
index 077390c76bce9aa369ca23d001dc7988ce0cd16b..5fcfcbdeae99f6c862c3bffdd980923d5acb1c85 100644
--- a/chrome/browser/ui/browser_instant_controller_unittest.cc
+++ b/chrome/browser/ui/browser_instant_controller_unittest.cc
@@ -86,13 +86,9 @@ class FakeWebContentsObserver : public content::WebContentsObserver {
current_url_ = url;
}
- const GURL url() const {
- return url_;
- }
+ const GURL& url() const { return url_; }
- const GURL current_url() const {
- return contents_->GetURL();
- }
+ const GURL& current_url() const { return contents_->GetURL(); }
int num_reloads() const {
return num_reloads_;
« 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