Commit 0dda3d29 authored by payal.pandey's avatar payal.pandey Committed by Commit bot

Replacing const by value return values into const by ref in chrome/browser/ui/

This CL turns const by value return values into const by ref

BUG=393155

Review URL: https://codereview.chromium.org/1118443002

Cr-Commit-Position: refs/heads/master@{#327569}
parent 133cd4cf
...@@ -86,13 +86,9 @@ class FakeWebContentsObserver : public content::WebContentsObserver { ...@@ -86,13 +86,9 @@ class FakeWebContentsObserver : public content::WebContentsObserver {
current_url_ = url; current_url_ = url;
} }
const GURL url() const { const GURL& url() const { return url_; }
return url_;
}
const GURL current_url() const { const GURL& current_url() const { return contents_->GetURL(); }
return contents_->GetURL();
}
int num_reloads() const { int num_reloads() const {
return num_reloads_; return num_reloads_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment