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

Unified Diff: chrome/browser/ui/toolbar/toolbar_actions_model.h

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
Index: chrome/browser/ui/toolbar/toolbar_actions_model.h
diff --git a/chrome/browser/ui/toolbar/toolbar_actions_model.h b/chrome/browser/ui/toolbar/toolbar_actions_model.h
index a92068cfb4e12f78d5a67b5d6baf08c707fc133d..ebeaeeee92605aaf2789c12eb7bcbd3200de5b0f 100644
--- a/chrome/browser/ui/toolbar/toolbar_actions_model.h
+++ b/chrome/browser/ui/toolbar/toolbar_actions_model.h
@@ -56,7 +56,7 @@ class ToolbarActionsModel : public extensions::ExtensionActionAPI::Observer,
// An action id and its corresponding ActionType.
struct ToolbarItem {
ToolbarItem() : type(UNKNOWN_ACTION) {}
- ToolbarItem(std::string action_id, ActionType action_type)
+ ToolbarItem(const std::string& action_id, ActionType action_type)
: id(action_id), type(action_type) {}
bool operator==(const ToolbarItem& other) { return other.id == id; }

Powered by Google App Engine
This is Rietveld 408576698