diff options
Diffstat (limited to 'chrome/browser/ui/webui/textfields_ui.cc')
-rw-r--r-- | chrome/browser/ui/webui/textfields_ui.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/textfields_ui.cc b/chrome/browser/ui/webui/textfields_ui.cc index c7385f6..ea25bc3 100644 --- a/chrome/browser/ui/webui/textfields_ui.cc +++ b/chrome/browser/ui/webui/textfields_ui.cc @@ -66,5 +66,6 @@ TextfieldsUI::TextfieldsUI(TabContents* contents) : ChromeWebUI(contents) { TextfieldsUIHTMLSource* html_source = new TextfieldsUIHTMLSource(); // Set up the chrome://textfields/ source. - contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); + Profile* profile = Profile::FromBrowserContext(contents->browser_context()); + profile->GetChromeURLDataManager()->AddDataSource(html_source); } |