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

Unified Diff: chrome/common/extensions/api/commands/commands_handler.cc

Issue 2152373003: [Extensions] Code Cleanup - Remove redundant smart-ptr get()s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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/api/commands/commands_handler.cc
diff --git a/chrome/common/extensions/api/commands/commands_handler.cc b/chrome/common/extensions/api/commands/commands_handler.cc
index 6ba153265573340ba392df1440e283172671729b..43870ee92880d69d49a433b7f59a0857daca194a 100644
--- a/chrome/common/extensions/api/commands/commands_handler.cc
+++ b/chrome/common/extensions/api/commands/commands_handler.cc
@@ -118,7 +118,7 @@ bool CommandsHandler::Parse(Extension* extension, base::string16* error) {
commands_info->page_action_command.reset(binding.release());
} else {
if (command_name[0] != '_') // All commands w/underscore are reserved.
- commands_info->named_commands[command_name] = *binding.get();
+ commands_info->named_commands[command_name] = *binding;
}
}

Powered by Google App Engine
This is Rietveld 408576698