Chromium Code Reviews| Index: chrome/browser/extensions/extension_prefs.h |
| diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h |
| index c5735c4aeb4d7c91d25a1ead169084a82008e7d1..683882b7074ca4586e9333a1ef74af86db9b99dc 100644 |
| --- a/chrome/browser/extensions/extension_prefs.h |
| +++ b/chrome/browser/extensions/extension_prefs.h |
| @@ -110,6 +110,10 @@ class ExtensionPrefs : public extensions::ContentSettingsStore::Observer, |
| // Set the order that the browser actions appear in the toolbar. |
| void SetToolbarOrder(const std::vector<std::string>& extension_ids); |
| + // Get/Set the order that the browser actions appear in the action box. |
| + std::vector<std::string> GetActionBoxOrder(); |
| + void SetActionBoxOrder(const std::vector<std::string>& extension_ids); |
| + |
| // Called when an extension is installed, so that prefs get created. |
| // If |page_ordinal| is an invalid ordinal, then a page will be found |
| // for the App. |
| @@ -538,6 +542,11 @@ class ExtensionPrefs : public extensions::ContentSettingsStore::Observer, |
| bool DoesExtensionHaveState(const std::string& id, |
| extensions::Extension::State check_state) const; |
| + // Helper function to Get/Set array of strings from/to prefs |
| + std::vector<std::string> GetExtensionsOrder(const char* pref); |
|
Aaron Boodman
2012/07/02 22:41:34
If it's really just getting an array of strings, t
yefimt
2012/07/11 22:34:34
Done.
|
| + void SetExtensionsOrder(const char* pref, |
| + const std::vector<std::string>& extension_ids); |
| + |
| // The pref service specific to this set of extension prefs. Owned by profile. |
| PrefService* prefs_; |