Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(666)

Unified Diff: chrome/browser/tab_contents/background_contents.cc

Issue 8403024: Set extension-related webkit preferences in a common location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove is_web_ui param Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « chrome/browser/notifications/balloon_host.cc ('k') | chrome/browser/tab_contents/render_view_host_delegate_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698