Index: chrome/browser/extensions/extension_host.cc |
diff --git a/chrome/browser/extensions/extension_host.cc b/chrome/browser/extensions/extension_host.cc |
index 5c01d69207ece96b8c194481ec9bdc106cf1dd79..f4ee926218b19c49dcf8570d8cb1fd79415df76e 100644 |
--- a/chrome/browser/extensions/extension_host.cc |
+++ b/chrome/browser/extensions/extension_host.cc |
@@ -469,10 +469,10 @@ RendererPreferences ExtensionHost::GetRendererPrefs(Profile* profile) const { |
} |
WebPreferences ExtensionHost::GetWebkitPrefs() { |
- PrefService* prefs = render_view_host()->process()->profile()->GetPrefs(); |
+ Profile* profile = render_view_host()->process()->profile(); |
const bool kIsDomUI = true; |
WebPreferences webkit_prefs = |
- RenderViewHostDelegateHelper::GetWebkitPrefs(prefs, kIsDomUI); |
+ RenderViewHostDelegateHelper::GetWebkitPrefs(profile, kIsDomUI); |
if (extension_host_type_ == ViewType::EXTENSION_POPUP) |
webkit_prefs.allow_scripts_to_close_windows = true; |
return webkit_prefs; |