summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_prefs.h
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-14 20:51:29 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-14 20:51:29 +0000
commit216e0bc0a053fe5939f829c877959f9a26a91e11 (patch)
tree3c9036938d87ee68ba69acc7ca0a9529a19202dd /chrome/browser/extensions/extension_prefs.h
parenta4ed6281fe6d6aad1366a8f6b03e35f6e1eadaa6 (diff)
downloadchromium_src-216e0bc0a053fe5939f829c877959f9a26a91e11.zip
chromium_src-216e0bc0a053fe5939f829c877959f9a26a91e11.tar.gz
chromium_src-216e0bc0a053fe5939f829c877959f9a26a91e11.tar.bz2
Persist the order of extensions in the browser action toolbar across sessions.
Very similar to what we did with the extension shelf. BUG=26990 Review URL: http://codereview.chromium.org/487021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34490 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_prefs.h')
-rw-r--r--chrome/browser/extensions/extension_prefs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/extensions/extension_prefs.h b/chrome/browser/extensions/extension_prefs.h
index 2bbd239..86ad883 100644
--- a/chrome/browser/extensions/extension_prefs.h
+++ b/chrome/browser/extensions/extension_prefs.h
@@ -36,6 +36,12 @@ class ExtensionPrefs {
// Sets the order that toolstrip URLs appear in the shelf.
void SetShelfToolstripOrder(const URLList& urls);
+ // Get the order that the browser actions appear in the toolbar.
+ std::vector<std::string> GetToolbarOrder();
+
+ // Set the order that the browser actions appear in the toolbar.
+ void SetToolbarOrder(const std::vector<std::string>& extension_ids);
+
// Called when an extension is installed, so that prefs get created.
void OnExtensionInstalled(Extension* extension);