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

Unified Diff: chrome/browser/extensions/extension_prefs.h

Issue 14990002: Make sure keybindings removed don't come back during extension update. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove command handler Created 7 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_prefs.h
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index aabb1fdd0da3d29739fb8e9022ce570e6c83834a..a9a193796164a27742fe6bb00d5748bb0075b40b 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -512,6 +512,12 @@ class ExtensionPrefs : public ContentSettingsStore::Observer,
// Returns true if the extension was installed as a default app.
bool WasInstalledByDefault(const std::string& extension_id) const;
+ // Gets/Sets a flag with the extension that signifies that the initial
+ // keybindings have been assigned (so that it is not overwritten when the
+ // extension updates).
+ void SetInitialBindingsHaveBeenAssigned(const std::string& extension_id);
+ bool InitialBindingsHaveBeenAssigned(const std::string& extension_id) const;
+
// Helper method to acquire the installation time of an extension.
// Returns base::Time() if the installation time could not be parsed or
// found.

Powered by Google App Engine
This is Rietveld 408576698