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

Unified Diff: content/browser/tab_contents/tab_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: 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tab_contents/tab_contents.cc
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc
index fd84d52269e46fcb6c3ce231441186059c69411c..8e112997c09e1c65883daac0d13660566b35c226 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -1798,9 +1798,11 @@ void TabContents::RunBeforeUnloadConfirm(const RenderViewHost* rvh,
}
WebPreferences TabContents::GetWebkitPrefs() {
+ // TODO(aa): It seems like ths should pass |true| if this tab_contents has a
+ // web_ui, doesn't it?
jam 2011/10/27 17:10:24 you can just do (ChildProcessSecurityPolicy::GetIn
Aaron Boodman 2011/10/27 22:47:23 Ok, but isn't it a bug in current Chrome that it d
jam 2011/10/28 16:20:50 I don't understand what you mean? I thought you we
WebPreferences web_prefs =
content::GetContentClient()->browser()->GetWebkitPrefs(
- render_view_host()->process()->browser_context(), false);
+ render_view_host(), false);
// Force accelerated compositing and 2d canvas off for chrome:, about: and
// chrome-devtools: pages (unless it's specifically allowed).
@@ -2006,4 +2008,3 @@ bool TabContents::GotResponseToLockMouseRequest(bool allowed) {
return render_view_host() ?
render_view_host()->GotResponseToLockMouseRequest(allowed) : false;
}
-
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698