diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-20 21:47:24 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-20 21:47:24 +0000 |
commit | 398d1a99e87fb3f57f6330616f5aa1fd494faced (patch) | |
tree | 5cd132ee17c51010962df32a18d7bc7b05dcb5b6 /chrome/browser/extensions/default_apps.h | |
parent | 94ce7252d9efa9d13159dc941cc7f2b762d11d7d (diff) | |
download | chromium_src-398d1a99e87fb3f57f6330616f5aa1fd494faced.zip chromium_src-398d1a99e87fb3f57f6330616f5aa1fd494faced.tar.gz chromium_src-398d1a99e87fb3f57f6330616f5aa1fd494faced.tar.bz2 |
Do not show apps section until default apps are installed.
The referenced bugs were side-effects of this underlying issue.
BUG=67073,67075
TEST=Run chrome on new profile. Apps section should not show up
initially. Go to chrome://extensions/ -> developer mode, and
click 'update now'. Apps should show up along with promo.
Uninstall all apps. Apps section should keep showing up.
Review URL: http://codereview.chromium.org/5958002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/default_apps.h')
-rw-r--r-- | chrome/browser/extensions/default_apps.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/extensions/default_apps.h b/chrome/browser/extensions/default_apps.h index a6e899e..b03f6ec 100644 --- a/chrome/browser/extensions/default_apps.h +++ b/chrome/browser/extensions/default_apps.h @@ -46,6 +46,9 @@ class DefaultApps { // Gets the list of default apps. const ExtensionIdSet* GetDefaultApps() const; + // Returns true if the default apps have been installed. False otherwise. + bool GetDefaultAppsInstalled() const; + // Should be called after each app is installed. Once installed_ids contains // all the default apps, GetAppsToInstall() will start returning NULL. void DidInstallApp(const ExtensionIdSet& installed_ids); @@ -69,7 +72,6 @@ class DefaultApps { FRIEND_TEST_ALL_PREFIXES(ExtensionDefaultApps, ManualAppInstalledWhileInstallingDefaultApps); - bool GetDefaultAppsInstalled() const; void SetDefaultAppsInstalled(bool val); int GetPromoCounter() const; |