summaryrefslogtreecommitdiffstats
path: root/chrome/browser/dom_ui/shown_sections_handler.h
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-05 17:05:22 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-05 17:05:22 +0000
commit26a70a153a51257706e27485e1382e1e25fbf4fe (patch)
tree83bd75b7a60fba9f878b5a678d5094f7754bcfca /chrome/browser/dom_ui/shown_sections_handler.h
parenta01e0063c4e06678007daf9a6fd8cc0bff23c560 (diff)
downloadchromium_src-26a70a153a51257706e27485e1382e1e25fbf4fe.zip
chromium_src-26a70a153a51257706e27485e1382e1e25fbf4fe.tar.gz
chromium_src-26a70a153a51257706e27485e1382e1e25fbf4fe.tar.bz2
Make sure the app section opens whenever a new apps is
installed, even if the installation is through default installation. BUG=61973 TEST=Have an app installed, then close apps section, then install a new app. Apps section should re-open. Review URL: http://codereview.chromium.org/4506002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui/shown_sections_handler.h')
-rw-r--r--chrome/browser/dom_ui/shown_sections_handler.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/dom_ui/shown_sections_handler.h b/chrome/browser/dom_ui/shown_sections_handler.h
index be07735..e82c3fb 100644
--- a/chrome/browser/dom_ui/shown_sections_handler.h
+++ b/chrome/browser/dom_ui/shown_sections_handler.h
@@ -8,6 +8,7 @@
#include "chrome/browser/dom_ui/dom_ui.h"
#include "chrome/common/notification_observer.h"
+#include "chrome/common/notification_registrar.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
class DOMUI;
@@ -23,6 +24,9 @@ enum Section {
THUMB = 1 << 0,
APPS = 1 << 6,
+ // We use the low 16 bits for sections, the high 16 bits for minimized state.
+ ALL_SECTIONS_MASK = 0x0000FFFF,
+
// If one of these is set, then the corresponding section is shown minimized
// at the bottom of the NTP and no data is directly visible on the NTP.
MINIMIZED_THUMB = 1 << (0 + 16),
@@ -61,7 +65,8 @@ class ShownSectionsHandler : public DOMMessageHandler,
private:
PrefService* pref_service_;
- PrefChangeRegistrar registrar_;
+ PrefChangeRegistrar pref_registrar_;
+ NotificationRegistrar notification_registrar_;
DISALLOW_COPY_AND_ASSIGN(ShownSectionsHandler);
};