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

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

Issue 8747015: Apply per-tab preference after RenderViewImpl creation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added test Created 9 years, 1 month 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: chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc
diff --git a/chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc b/chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc
index 4a5abb934960abcfb3c9dca2d8006a2c12a9ff8d..a501600b5c5b48e46aaa2691f441cbb73b946acc 100644
--- a/chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc
+++ b/chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc
@@ -48,6 +48,10 @@ void PerTabPrefsTabHelper::RegisterPerTabUserPrefs(PrefService* prefs) {
PrefService::UNSYNCABLE_PREF);
}
+void PerTabPrefsTabHelper::RenderViewCreated(RenderViewHost* render_view_host) {
+ wrapper_->UpdateWebPreferences();
+}
+
void PerTabPrefsTabHelper::TabContentsDestroyed(TabContents* tab) {
pref_change_registrar_.RemoveAll();
}

Powered by Google App Engine
This is Rietveld 408576698