| Index: chrome/browser/ui/webui/policy_ui.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/policy_ui.cc (revision 117871)
|
| +++ chrome/browser/ui/webui/policy_ui.cc (working copy)
|
| @@ -233,11 +233,12 @@
|
| //
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| -PolicyUI::PolicyUI(WebContents* contents) : WebUI(contents, this) {
|
| - AddMessageHandler(new PolicyUIHandler);
|
| +PolicyUI::PolicyUI(WebUI* web_ui) : WebUIController(web_ui) {
|
| + web_ui->AddMessageHandler(new PolicyUIHandler);
|
|
|
| // Set up the chrome://policy/ source.
|
| - Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext());
|
| + Profile* profile = Profile::FromBrowserContext(
|
| + web_ui->web_contents()->GetBrowserContext());
|
| profile->GetChromeURLDataManager()->AddDataSource(CreatePolicyUIHTMLSource());
|
| }
|
|
|
|
|