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

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

Issue 10201016: Conflict detection for Extension Keybinding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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_service.cc
===================================================================
--- chrome/browser/extensions/extension_service.cc (revision 133458)
+++ chrome/browser/extensions/extension_service.cc (working copy)
@@ -50,6 +50,7 @@
#include "chrome/browser/extensions/extension_global_error.h"
#include "chrome/browser/extensions/extension_host.h"
#include "chrome/browser/extensions/extension_input_ime_api.h"
+#include "chrome/browser/extensions/extension_keybinding_registry.h"
#include "chrome/browser/extensions/extension_management_api.h"
#include "chrome/browser/extensions/extension_preference_api.h"
#include "chrome/browser/extensions/extension_process_manager.h"
@@ -809,6 +810,9 @@
// any of these resources.
UnloadExtension(extension_id, extension_misc::UNLOAD_REASON_UNINSTALL);
+ ExtensionKeybindingRegistry::RemoveKeybindingPref(profile_->GetPrefs(),
Aaron Boodman 2012/04/25 19:14:38 Please avoid adding more glue code here. Instead,
Finnur 2012/04/26 13:12:35 I thought about that. The problem is that the Exte
Aaron Boodman 2012/04/26 19:29:30 I see. In that case, I suggest a small KeybindingG
+ extension_id);
+
extension_prefs_->OnExtensionUninstalled(extension_id, extension->location(),
external_uninstall);
@@ -2258,6 +2262,9 @@
extension_prefs_->SetAllowFileAccess(id, true);
}
+ ExtensionKeybindingRegistry::ResolveKeyBindings(profile_->GetPrefs(),
+ extension);
Finnur 2012/04/26 13:12:35 Same question here. Move it to OnExtensionInstalle
+
// Transfer ownership of |extension| to AddExtension.
if (AddExtension(scoped_extension)) {
content::NotificationService::current()->Notify(

Powered by Google App Engine
This is Rietveld 408576698