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 7a1e82b9985e6deb4799830d1b6f2867909015ca..c0e0469865000818ece347d3c15e561aaeb78ef8 100644 |
--- a/content/browser/tab_contents/tab_contents.cc |
+++ b/content/browser/tab_contents/tab_contents.cc |
@@ -159,7 +159,8 @@ const char* kPrefsToObserve[] = { |
prefs::kWebKitMinimumFontSize, |
prefs::kWebKitMinimumLogicalFontSize, |
prefs::kWebkitTabsToLinks, |
- prefs::kDefaultCharset |
+ prefs::kDefaultCharset, |
+ prefs::kEnableReferrers |
}; |
const int kPrefsToObserveLength = arraysize(kPrefsToObserve); |
@@ -2441,6 +2442,10 @@ void TabContents::Observe(NotificationType type, |
UpdateWebPreferences(); |
} else if (*pref_name_in == prefs::kDefaultZoomLevel) { |
UpdateZoomLevel(); |
+ } else if (*pref_name_in == prefs::kEnableReferrers) { |
+ renderer_preferences_util::UpdateFromSystemSettings( |
+ &renderer_preferences_, profile()); |
+ render_view_host()->SyncRendererPrefs(); |
} else { |
NOTREACHED() << "unexpected pref change notification" << *pref_name_in; |
} |