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

Unified Diff: chrome/common/extensions/command.h

Issue 2141753002: [Extensions] Code cleanup - const &s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/common/extensions/command.h
diff --git a/chrome/common/extensions/command.h b/chrome/common/extensions/command.h
index 601c7ab5789228aa8de6510283af368beb40f676..63edc01cc54e8de85a49e89937ad98ad5d700c81 100644
--- a/chrome/common/extensions/command.h
+++ b/chrome/common/extensions/command.h
@@ -61,7 +61,7 @@ class Command {
bool global() const { return global_; }
// Setter:
- void set_accelerator(ui::Accelerator accelerator) {
+ void set_accelerator(const ui::Accelerator& accelerator) {
accelerator_ = accelerator;
}
void set_global(bool global) {
« no previous file with comments | « chrome/common/extensions/chrome_manifest_url_handlers.cc ('k') | chrome/common/extensions/command_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698