Index: chrome/browser/tab_contents/background_contents.cc |
diff --git a/chrome/browser/tab_contents/background_contents.cc b/chrome/browser/tab_contents/background_contents.cc |
index 6b3187a49ec5767995d1ec2fe2cce2c25981b319..33af53fc0b5d8f7f7756f8a36e54425e8e548dbd 100644 |
--- a/chrome/browser/tab_contents/background_contents.cc |
+++ b/chrome/browser/tab_contents/background_contents.cc |
@@ -185,12 +185,9 @@ RendererPreferences BackgroundContents::GetRendererPrefs( |
} |
WebPreferences BackgroundContents::GetWebkitPrefs() { |
- // TODO(rafaelw): Consider enabling the webkit_prefs.dom_paste_enabled for |
- // apps. |
- Profile* profile = Profile::FromBrowserContext( |
- render_view_host_->process()->browser_context()); |
- WebPreferences prefs = RenderViewHostDelegateHelper::GetWebkitPrefs(profile, |
- false); |
+ WebPreferences prefs = |
+ RenderViewHostDelegateHelper::GetWebkitPrefs(render_view_host_); |
+ |
// Disable all kinds of acceleration for background pages. |
// See http://crbug.com/96005 and http://crbug.com/96006 |
prefs.force_compositing_mode = false; |