summaryrefslogtreecommitdiffstats
path: root/extensions/browser/guest_view
diff options
context:
space:
mode:
authorki.stfu <ki.stfu@gmail.com>2015-09-20 23:55:01 -0700
committerCommit bot <commit-bot@chromium.org>2015-09-21 06:55:38 +0000
commit4fc405185a586d3caaa51ea0d1e74ce2d8eb3b0b (patch)
treed95d4f9c8dcf219ddfc1b71377e0f4679fefc237 /extensions/browser/guest_view
parent2872125ae4b06571fd11018df77e1d3a2c5295ca (diff)
downloadchromium_src-4fc405185a586d3caaa51ea0d1e74ce2d8eb3b0b.zip
chromium_src-4fc405185a586d3caaa51ea0d1e74ce2d8eb3b0b.tar.gz
chromium_src-4fc405185a586d3caaa51ea0d1e74ce2d8eb3b0b.tar.bz2
Cleanup: Pass std::string as const reference from extensions/
Passing std::string by reference can prevent extra copying of object. BUG=367418 TEST= R=reillyg@chromium.org,asargent@chromium.org Review URL: https://codereview.chromium.org/1340413004 Cr-Commit-Position: refs/heads/master@{#349905}
Diffstat (limited to 'extensions/browser/guest_view')
-rw-r--r--extensions/browser/guest_view/web_view/web_view_renderer_state.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/extensions/browser/guest_view/web_view/web_view_renderer_state.h b/extensions/browser/guest_view/web_view/web_view_renderer_state.h
index ad2de37..7ee5ace 100644
--- a/extensions/browser/guest_view/web_view/web_view_renderer_state.h
+++ b/extensions/browser/guest_view/web_view/web_view_renderer_state.h
@@ -81,9 +81,8 @@ class WebViewRendererState {
int web_view_count;
std::string partition_id;
WebViewPartitionInfo() {}
- WebViewPartitionInfo(int count, std::string partition):
- web_view_count(count),
- partition_id(partition) {}
+ WebViewPartitionInfo(int count, const std::string& partition)
+ : web_view_count(count), partition_id(partition) {}
};
using WebViewPartitionIDMap = std::map<int, WebViewPartitionInfo>;