diff options
Diffstat (limited to 'chrome/browser/ui/webui/plugins_ui.cc')
| -rw-r--r-- | chrome/browser/ui/webui/plugins_ui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/webui/plugins_ui.cc b/chrome/browser/ui/webui/plugins_ui.cc index d7ab1b0..397e6fc 100644 --- a/chrome/browser/ui/webui/plugins_ui.cc +++ b/chrome/browser/ui/webui/plugins_ui.cc @@ -305,11 +305,11 @@ PluginsUI::PluginsUI(TabContents* contents) : ChromeWebUI(contents) { // Set up the chrome://plugins/ source. bool enable_controls = true; + Profile* profile = Profile::FromBrowserContext(contents->browser_context()); #if !defined(OS_CHROMEOS) - enable_controls = contents->profile()->GetOriginalProfile()-> - first_launched(); + enable_controls = profile->GetOriginalProfile()->first_launched(); #endif - contents->profile()->GetChromeURLDataManager()->AddDataSource( + profile->GetChromeURLDataManager()->AddDataSource( CreatePluginsUIHTMLSource(enable_controls)); } |
