| Index: chrome/browser/ui/webui/gpu_internals_ui.cc
|
| ===================================================================
|
| --- chrome/browser/ui/webui/gpu_internals_ui.cc (revision 117871)
|
| +++ chrome/browser/ui/webui/gpu_internals_ui.cc (working copy)
|
| @@ -243,10 +243,11 @@
|
| //
|
| ////////////////////////////////////////////////////////////////////////////////
|
|
|
| -GpuInternalsUI::GpuInternalsUI(WebContents* contents) : WebUI(contents, this) {
|
| - AddMessageHandler(new GpuMessageHandler());
|
| +GpuInternalsUI::GpuInternalsUI(WebUI* web_ui) : WebUIController(web_ui) {
|
| + web_ui->AddMessageHandler(new GpuMessageHandler());
|
|
|
| // Set up the chrome://gpu-internals/ source.
|
| - Profile* profile = Profile::FromBrowserContext(contents->GetBrowserContext());
|
| + Profile* profile = Profile::FromBrowserContext(
|
| + web_ui->web_contents()->GetBrowserContext());
|
| profile->GetChromeURLDataManager()->AddDataSource(CreateGpuHTMLSource());
|
| }
|
|
|