summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/web_contents.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/tab_contents/web_contents.cc')
-rw-r--r--chrome/browser/tab_contents/web_contents.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/chrome/browser/tab_contents/web_contents.cc b/chrome/browser/tab_contents/web_contents.cc
index 449a51e..1337b51 100644
--- a/chrome/browser/tab_contents/web_contents.cc
+++ b/chrome/browser/tab_contents/web_contents.cc
@@ -1219,7 +1219,6 @@ GURL WebContents::GetAlternateErrorPageURL() const {
WebPreferences WebContents::GetWebkitPrefs() {
// Initialize web_preferences_ to chrome defaults.
WebPreferences web_prefs;
-#if defined(OS_WIN) || defined(OS_LINUX)
PrefService* prefs = profile()->GetPrefs();
web_prefs.fixed_font_family =
@@ -1296,13 +1295,6 @@ WebPreferences WebContents::GetWebkitPrefs() {
web_prefs.default_encoding = prefs->GetString(
prefs::kDefaultCharset);
}
-#else
- // TODO(port): we skip doing the above settings because the default values
- // for these prefs->GetFoo() calls aren't filled in yet. By leaving the
- // the WebPreferences alone, we get the moderately-sane default values out
- // of WebKit. Remove this ifdef block once we properly load font sizes, etc.
- NOTIMPLEMENTED();
-#endif
DCHECK(!web_prefs.default_encoding.empty());
return web_prefs;