Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: chrome/browser/dom_ui/shown_sections_handler.h

Issue 6162006: Changes to default apps promo per ui leads: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/dom_ui/shown_sections_handler.h
diff --git a/chrome/browser/dom_ui/shown_sections_handler.h b/chrome/browser/dom_ui/shown_sections_handler.h
index ad227b4d46e592ce0b3fc4647cb088d56ce9858e..41c7da831d8daca07de39b4d683001119df0a734 100644
--- a/chrome/browser/dom_ui/shown_sections_handler.h
+++ b/chrome/browser/dom_ui/shown_sections_handler.h
@@ -43,6 +43,10 @@ class ShownSectionsHandler : public DOMMessageHandler,
// Helper to get the current shown sections.
static int GetShownSections(PrefService* pref_service);
+ // Expands |section|, collapsing any previously expanded section. This is the
+ // same thing that happens if a user clicks on |section|.
+ static void SetShownSection(PrefService* prefs, Section section);
+
// DOMMessageHandler implementation.
virtual void RegisterMessages();

Powered by Google App Engine
This is Rietveld 408576698