From 16c9be6081849d7fc14ef341b19cbc15c8d615fa Mon Sep 17 00:00:00 2001 From: "jam@chromium.org" Date: Fri, 27 Jan 2012 23:47:09 +0000 Subject: Fix about:profiler crash. BUG=110668 Review URL: https://chromiumcodereview.appspot.com/9223025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119530 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/webui/profiler_ui.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/browser/ui/webui/profiler_ui.cc b/chrome/browser/ui/webui/profiler_ui.cc index 0171b44..218cea8 100644 --- a/chrome/browser/ui/webui/profiler_ui.cc +++ b/chrome/browser/ui/webui/profiler_ui.cc @@ -135,7 +135,7 @@ void ProfilerMessageHandler::RegisterMessages() { } void ProfilerMessageHandler::OnGetData(const ListValue* list) { - ProfilerUI* profiler_ui = reinterpret_cast(web_ui()); + ProfilerUI* profiler_ui = static_cast(web_ui()->GetController()); profiler_ui->GetData(); } -- cgit v1.1