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

Unified Diff: ui/compositor/layer.cc

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 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 | « ui/accessibility/ax_node_data.cc ('k') | url/gurl.h » ('j') | url/gurl.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 0c5543358f953af373914803cdbb84bcb7dd8305..352a9ce1e1e69e032cc691aa27e34589c2f07689 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -808,7 +808,7 @@ void Layer::SetForceRenderSurface(bool force) {
class LayerDebugInfo : public base::trace_event::ConvertableToTraceFormat {
public:
- explicit LayerDebugInfo(std::string name) : name_(name) { }
+ explicit LayerDebugInfo(const std::string& name) : name_(name) {}
void AppendAsTraceFormat(std::string* out) const override {
base::DictionaryValue dictionary;
dictionary.SetString("layer_name", name_);
« no previous file with comments | « ui/accessibility/ax_node_data.cc ('k') | url/gurl.h » ('j') | url/gurl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698