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

Unified Diff: chrome/browser/extensions/api/commands/command_service.cc

Issue 10833071: Renaming the 'keybinding' permission to 'commands'. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « no previous file | chrome/browser/extensions/browser_event_router.cc » ('j') | chrome/common/pref_names.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/commands/command_service.cc
===================================================================
--- chrome/browser/extensions/api/commands/command_service.cc (revision 148953)
+++ chrome/browser/extensions/api/commands/command_service.cc (working copy)
@@ -37,7 +37,7 @@
// static
void CommandService::RegisterUserPrefs(
PrefService* user_prefs) {
- user_prefs->RegisterDictionaryPref(prefs::kExtensionKeybindings,
+ user_prefs->RegisterDictionaryPref(prefs::kExtensionCommands,
PrefService::SYNCABLE_PREF);
}
@@ -108,7 +108,7 @@
return false;
DictionaryPrefUpdate updater(profile_->GetPrefs(),
- prefs::kExtensionKeybindings);
+ prefs::kExtensionCommands);
DictionaryValue* bindings = updater.Get();
std::string key = GetPlatformKeybindingKeyForAccelerator(accelerator);
@@ -167,7 +167,7 @@
ui::Accelerator CommandService::FindShortcutForCommand(
const std::string& extension_id, const std::string& command) {
const DictionaryValue* bindings =
- profile_->GetPrefs()->GetDictionary(prefs::kExtensionKeybindings);
+ profile_->GetPrefs()->GetDictionary(prefs::kExtensionCommands);
for (DictionaryValue::key_iterator it = bindings->begin_keys();
it != bindings->end_keys(); ++it) {
const DictionaryValue* item = NULL;
@@ -224,7 +224,7 @@
void CommandService::RemoveKeybindingPrefs(const std::string& extension_id,
const std::string& command_name) {
DictionaryPrefUpdate updater(profile_->GetPrefs(),
- prefs::kExtensionKeybindings);
+ prefs::kExtensionCommands);
DictionaryValue* bindings = updater.Get();
typedef std::vector<std::string> KeysToRemove;
« no previous file with comments | « no previous file | chrome/browser/extensions/browser_event_router.cc » ('j') | chrome/common/pref_names.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698