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

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

Issue 155787: Make Linux pass users' font settings through to renderer. (Closed)
Patch Set: remove unneeded include Created 11 years, 5 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/browser/tab_contents/tab_contents.h ('k') | chrome/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc
index 21ccbe16f61206616d886be888a462389ea014b3..cb2bce432b5e44bb56c1c7cb8519658475e31fe5 100644
--- a/chrome/browser/tab_contents/tab_contents.cc
+++ b/chrome/browser/tab_contents/tab_contents.cc
@@ -284,6 +284,8 @@ TabContents::TabContents(Profile* profile,
// Keep a global copy of the previous search string (if any).
static string16 global_last_search = string16();
last_search_prepopulate_text_ = &global_last_search;
+
+ view_->InitRendererPrefs(&renderer_preferences_);
}
TabContents::~TabContents() {
@@ -1713,10 +1715,7 @@ RenderViewHostDelegate::Autofill* TabContents::GetAutofillDelegate() {
}
RendererPreferences TabContents::GetRendererPrefs() const {
- if (delegate())
- return delegate()->GetRendererPrefs();
- else
- return RendererPreferences();
+ return renderer_preferences_;
}
TabContents* TabContents::GetAsTabContents() {
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.h ('k') | chrome/browser/tab_contents/tab_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698