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

Unified Diff: chrome/browser/prefs/per_tab_user_pref_store.cc

Issue 8716004: Add per-tab "JavaScript enabled" preference. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments and fixed fwd declaration 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/prefs/per_tab_user_pref_store.cc
diff --git a/chrome/browser/prefs/per_tab_user_pref_store.cc b/chrome/browser/prefs/per_tab_user_pref_store.cc
index 1de2c752d5afaddce72c47f049d693bb5dd9cc3a..d521ea1cf3fdaf545092742ade3065040856cee1 100644
--- a/chrome/browser/prefs/per_tab_user_pref_store.cc
+++ b/chrome/browser/prefs/per_tab_user_pref_store.cc
@@ -3,7 +3,10 @@
// found in the LICENSE file.
#include "chrome/browser/prefs/per_tab_user_pref_store.h"
+#include "chrome/common/pref_names.h"
PerTabUserPrefStore::PerTabUserPrefStore(PersistentPrefStore* underlay)
: OverlayUserPrefStore(underlay) {
+ RegisterOverlayProperty(
+ prefs::kWebKitJavascriptEnabled, prefs::kWebKitGlobalJavascriptEnabled);
}
« no previous file with comments | « chrome/browser/prefs/overlay_user_pref_store_unittest.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698