summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension.h
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-08 22:58:31 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-08 22:58:31 +0000
commit1e8c93fe918da7180751eecca190a2a867c9addf (patch)
tree4579751f5aeb2598fd826959a435745f9c4e7ace /chrome/common/extensions/extension.h
parent67b9363d125be4454015da11e1a233beab667943 (diff)
downloadchromium_src-1e8c93fe918da7180751eecca190a2a867c9addf.zip
chromium_src-1e8c93fe918da7180751eecca190a2a867c9addf.tar.gz
chromium_src-1e8c93fe918da7180751eecca190a2a867c9addf.tar.bz2
Preserve order of extensions when they auto-update.
Also added tests for the ExtensionToolbarModel. BUG=33401 TEST=ExtensionToolbarModelTest (new test). Review URL: http://codereview.chromium.org/587002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@38407 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension.h')
-rw-r--r--chrome/common/extensions/extension.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index f1dbbfd..1420f59 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -284,6 +284,11 @@ class Extension {
bool GetBackgroundPageReady();
void SetBackgroundPageReady();
+ // Getter and setter for the flag that specifies whether the extension is
+ // being upgraded.
+ bool being_upgraded() const { return being_upgraded_; }
+ void set_being_upgraded(bool value) { being_upgraded_ = value; }
+
// App stuff.
const URLPatternList& app_extent() const { return app_extent_; }
const GURL& app_launch_url() const { return app_launch_url_; }
@@ -432,6 +437,9 @@ class Extension {
// True if the background page is ready.
bool background_page_ready_;
+ // True while the extension is being upgraded.
+ bool being_upgraded_;
+
FRIEND_TEST(ExtensionTest, LoadPageActionHelper);
FRIEND_TEST(TabStripModelTest, Apps);