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

Unified Diff: chrome/browser/ui/webui/options/options_managed_banner_handler.h

Issue 7096013: Allow device policy code to be optionally included. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make changes requested by torne. Created 9 years, 7 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/ui/webui/options/options_managed_banner_handler.h
diff --git a/chrome/browser/ui/webui/options/options_managed_banner_handler.h b/chrome/browser/ui/webui/options/options_managed_banner_handler.h
index 95a8d2a20f4d6f167d69c1e9d788669b1774ebe6..202d82d9f5c6fcba7905a6847a66b6f8e29078c0 100644
--- a/chrome/browser/ui/webui/options/options_managed_banner_handler.h
+++ b/chrome/browser/ui/webui/options/options_managed_banner_handler.h
@@ -18,9 +18,9 @@ class WebUI;
// that are under administator control.
class OptionsManagedBannerHandler : public policy::ManagedPrefsBannerBase {
public:
- OptionsManagedBannerHandler(WebUI* web_ui,
- const string16& page_name,
- OptionsPage page);
+ static OptionsManagedBannerHandler* Create(WebUI* web_ui,
+ const string16& page_name,
+ OptionsPage page);
virtual ~OptionsManagedBannerHandler();
protected:
@@ -28,6 +28,10 @@ class OptionsManagedBannerHandler : public policy::ManagedPrefsBannerBase {
virtual void OnUpdateVisibility();
private:
+ OptionsManagedBannerHandler(WebUI* web_ui,
+ const string16& page_name,
+ OptionsPage page);
+
// Set the managed options banner to be visible or invisible.
void SetupBannerVisibility();

Powered by Google App Engine
This is Rietveld 408576698