diff options
author | ki.stfu <ki.stfu@gmail.com> | 2015-09-20 23:55:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-09-21 06:55:38 +0000 |
commit | 4fc405185a586d3caaa51ea0d1e74ce2d8eb3b0b (patch) | |
tree | d95d4f9c8dcf219ddfc1b71377e0f4679fefc237 /extensions/browser/guest_view | |
parent | 2872125ae4b06571fd11018df77e1d3a2c5295ca (diff) | |
download | chromium_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.h | 5 |
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>; |