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

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

Issue 635573005: Cleanup: Better constify some strings in chrome/browser/{chromeos,extensions}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, nit Created 6 years, 2 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_apitest.cc
diff --git a/chrome/browser/extensions/extension_keybinding_apitest.cc b/chrome/browser/extensions/extension_keybinding_apitest.cc
index 66755bbae3f09acbb5ad0eb875742679076631c3..29c93a7d8d6152b408f85c03cebf46b6fc1c1256 100644
--- a/chrome/browser/extensions/extension_keybinding_apitest.cc
+++ b/chrome/browser/extensions/extension_keybinding_apitest.cc
@@ -377,9 +377,9 @@ IN_PROC_BROWSER_TEST_F(CommandsApiTest,
const Extension* extension = GetSingleLoadedExtension();
// Simulate the user setting the keybinding to Ctrl+D.
#if defined(OS_MACOSX)
- const char* hotkey = "Command+D";
+ const char hotkey[] = "Command+D";
#else
- const char* hotkey = "Ctrl+D";
+ const char hotkey[] = "Ctrl+D";
#endif // defined(OS_MACOSX)
command_service->UpdateKeybindingPrefs(
extension->id(), manifest_values::kBrowserActionCommandEvent, hotkey);

Powered by Google App Engine
This is Rietveld 408576698