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

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

Issue 6773006: Add enableReferrers and enableHyperlinkAuditing to contentSettings.misc API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 9 years, 9 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: 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 9559db35c389ea5d8d188b058444a799c2ea468a..ecebf20104918e4b8904f361dd447fa1d70e5d3c 100644
--- a/content/browser/tab_contents/tab_contents.cc
+++ b/content/browser/tab_contents/tab_contents.cc
@@ -162,7 +162,8 @@ const char* kPrefsToObserve[] = {
prefs::kWebKitMinimumFontSize,
prefs::kWebKitMinimumLogicalFontSize,
prefs::kWebkitTabsToLinks,
- prefs::kDefaultCharset
+ prefs::kDefaultCharset,
+ prefs::kEnableReferrers
};
const int kPrefsToObserveLength = arraysize(kPrefsToObserve);
@@ -2606,6 +2607,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;
}

Powered by Google App Engine
This is Rietveld 408576698