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

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

Issue 788973002: Observe OnExtensionLoaded to trigger update of chrome.commands keybindings for component extensions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « chrome/browser/extensions/api/commands/command_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/commands/command_service.cc
diff --git a/chrome/browser/extensions/api/commands/command_service.cc b/chrome/browser/extensions/api/commands/command_service.cc
index 33a522e04104bb5816b4e2fcae386448c0a9715d..d2dafc1305973f84f7fd7f84d3735817825cd695 100644
--- a/chrome/browser/extensions/api/commands/command_service.cc
+++ b/chrome/browser/extensions/api/commands/command_service.cc
@@ -294,19 +294,15 @@ bool CommandService::AddKeybindingPref(
return true;
}
-void CommandService::OnExtensionWillBeInstalled(
- content::BrowserContext* browser_context,
- const Extension* extension,
- bool is_update,
- bool from_ephemeral,
- const std::string& old_name) {
+void CommandService::OnExtensionLoaded(content::BrowserContext* browser_context,
+ const Extension* extension) {
UpdateKeybindings(extension);
}
-void CommandService::OnExtensionUninstalled(
+void CommandService::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
- extensions::UninstallReason reason) {
+ UnloadedExtensionInfo::Reason reason) {
RemoveKeybindingPrefs(extension->id(), std::string());
Finnur 2014/12/10 12:25:38 If I temporarily disable an extension/it crashes,
David Tseng 2014/12/10 17:27:51 Done. Yup; that's the right way to do this; had on
}
« no previous file with comments | « chrome/browser/extensions/api/commands/command_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698