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

Unified Diff: chrome/browser/extensions/extension_keybinding_registry.cc

Issue 2030013003: Remove ListValue::Append(new {Fundamental,String}Value(...)) pattern in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/extensions/extension_keybinding_registry.cc
diff --git a/chrome/browser/extensions/extension_keybinding_registry.cc b/chrome/browser/extensions/extension_keybinding_registry.cc
index c9df30e3f1b3c3bffdb8fb886f8f326839fd061a..18009703112e6a8485349b3dc54f8a3d48f9d747 100644
--- a/chrome/browser/extensions/extension_keybinding_registry.cc
+++ b/chrome/browser/extensions/extension_keybinding_registry.cc
@@ -120,7 +120,7 @@ void ExtensionKeybindingRegistry::CommandExecuted(
granter->GrantIfRequested(extension);
std::unique_ptr<base::ListValue> args(new base::ListValue());
- args->Append(new base::StringValue(command));
+ args->AppendString(command);
std::unique_ptr<Event> event(new Event(events::COMMANDS_ON_COMMAND,
kOnCommandEventName, std::move(args)));

Powered by Google App Engine
This is Rietveld 408576698