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

Issue 8716004: Add per-tab "JavaScript enabled" preference. (Closed)

Created:
9 years ago by mnaganov (inactive)
Modified:
9 years ago
CC:
chromium-reviews, ajwong+watch_chromium.org, brettw-cc_chromium.org, creis+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Add per-tab "JavaScript enabled" preference. BUG=105537 TEST=TabContentsWrapperTest.PerTabJavaScriptEnabled Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112001

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments addressed #

Patch Set 3 : Moved per-tab prefs into a helper #

Total comments: 6

Patch Set 4 : Addressed comments and fixed fwd declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+201 lines, -14 lines) Patch
M chrome/browser/prefs/overlay_user_pref_store_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/prefs/per_tab_user_pref_store.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.cc View 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc View 1 2 3 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper_unittest.cc View 1 2 1 chunk +69 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 1 2 4 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.cc View 1 2 7 chunks +10 lines, -7 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
mnaganov (inactive)
9 years ago (2011-11-28 12:17:42 UTC) #1
Avi (use Gerrit)
On 2011/11/28 12:17:42, Mikhail Naganov (Chromium) wrote: Serious changes in functionality like this _require_ BUG ...
9 years ago (2011-11-28 13:35:14 UTC) #2
mnaganov (inactive)
On 2011/11/28 13:35:14, Avi wrote: > On 2011/11/28 12:17:42, Mikhail Naganov (Chromium) wrote: > > ...
9 years ago (2011-11-28 13:44:46 UTC) #3
Mattias Nissler (ping if slow)
Adding Avi, since I'm not so familiar with TabContents. The pref-related stuff LGTM with nits, ...
9 years ago (2011-11-28 15:04:16 UTC) #4
mnaganov (inactive)
Thanks! http://codereview.chromium.org/8716004/diff/1/chrome/browser/prefs/overlay_user_pref_store_unittest.cc File chrome/browser/prefs/overlay_user_pref_store_unittest.cc (left): http://codereview.chromium.org/8716004/diff/1/chrome/browser/prefs/overlay_user_pref_store_unittest.cc#oldcode20 chrome/browser/prefs/overlay_user_pref_store_unittest.cc:20: // There is no real-life sense in mapping ...
9 years ago (2011-11-28 15:20:05 UTC) #5
Avi (use Gerrit)
Before, all you were doing was creating a PrefService 1:1 with tabs, so what you ...
9 years ago (2011-11-28 15:43:52 UTC) #6
mnaganov (inactive)
On 2011/11/28 15:43:52, Avi wrote: > Before, all you were doing was creating a PrefService ...
9 years ago (2011-11-29 13:18:48 UTC) #7
Avi (use Gerrit)
Excellent! I have style comments, but the TabContents related code LGTM. http://codereview.chromium.org/8716004/diff/8001/chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc File chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc (right): ...
9 years ago (2011-11-29 15:13:52 UTC) #8
mnaganov (inactive)
Thanks! I'm fixing Mac/Win compilation error (need to forward declare "struct WebPreferences", not class), and ...
9 years ago (2011-11-29 16:57:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/8716004/14001
9 years ago (2011-11-29 18:16:43 UTC) #10
commit-bot: I haz the power
9 years ago (2011-11-29 19:56:49 UTC) #11
Change committed as 112001

Powered by Google App Engine
This is Rietveld 408576698