From 1e8c93fe918da7180751eecca190a2a867c9addf Mon Sep 17 00:00:00 2001 From: "finnur@chromium.org" Date: Mon, 8 Feb 2010 22:58:31 +0000 Subject: 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 --- chrome/common/extensions/extension.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'chrome/common/extensions/extension.h') 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); -- cgit v1.1