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

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

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.cc
diff --git a/chrome/browser/ui/webui/options/options_managed_banner_handler.cc b/chrome/browser/ui/webui/options/options_managed_banner_handler.cc
index ddf37858d33e267960034e92b175e1214481687f..6d98bee704a6e030337fba17ef10d99c21001155 100644
--- a/chrome/browser/ui/webui/options/options_managed_banner_handler.cc
+++ b/chrome/browser/ui/webui/options/options_managed_banner_handler.cc
@@ -9,6 +9,12 @@
#include "chrome/browser/profiles/profile.h"
#include "content/browser/webui/web_ui.h"
+// static
+OptionsManagedBannerHandler* OptionsManagedBannerHandler::Create(
+ WebUI* web_ui, const string16& page_name, OptionsPage page) {
+ return new OptionsManagedBannerHandler(web_ui, page_name, page);
+}
+
OptionsManagedBannerHandler::OptionsManagedBannerHandler(
WebUI* web_ui, const string16& page_name, OptionsPage page)
: policy::ManagedPrefsBannerBase(web_ui->GetProfile()->GetPrefs(), page),

Powered by Google App Engine
This is Rietveld 408576698