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

Issue 9838050: Remove per-tab preference machinery. (Closed)

Created:
8 years, 9 months ago by falken
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, brettw-cc_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org
Visibility:
Public.

Description

Remove per-tab preference machinery. It's no longer needed, according to mnaganov@, and it wasn't interacting well with extension-controlled preferences. This is a partial revert of the following: http://codereview.chromium.org/8879016/ http://codereview.chromium.org/8747015/ http://codereview.chromium.org/8716004/ http://codereview.chromium.org/8568019/ The "global" pref names are are kept as is. I plan to rename them back to the original names after this patch. Also, per-tab preferences introduced in the following are reverted: https://chromiumcodereview.appspot.com/9264071/ https://chromiumcodereview.appspot.com/9255018/ BUG=105537 TEST=manually and unit_tests --gtest_filter=Pref* and browser_tests --gtest_filter=PrefsTabHelperBrowserTest* still pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128871

Patch Set 1 #

Total comments: 8

Patch Set 2 : add back images_enabled in WebPreferences #

Total comments: 2

Patch Set 3 : sync #

Patch Set 4 : sync #

Patch Set 5 : remove WebContentsObserver parent class and set xss_enabled default to true #

Patch Set 6 : forward declaration order #

Patch Set 7 : should be kWebKitGlobalJavascriptEnabled #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -467 lines) Patch
M chrome/browser/prefs/pref_service.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 chunk +0 lines, -26 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.h View 1 2 3 4 5 2 chunks +6 lines, -16 lines 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 9 chunks +9 lines, -170 lines 0 comments Download
D chrome/browser/ui/prefs/prefs_tab_helper_unittest.cc View 1 chunk +0 lines, -234 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents_wrapper.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
falken
https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (left): https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc#oldcode575 chrome/browser/ui/prefs/prefs_tab_helper.cc:575: UpdateWebPreferences(); It's OK to remove this, right? It was ...
8 years, 9 months ago (2012-03-23 10:41:11 UTC) #1
mnaganov (inactive)
LGTM Thanks for dealing with this! https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (left): https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc#oldcode575 chrome/browser/ui/prefs/prefs_tab_helper.cc:575: UpdateWebPreferences(); On 2012/03/23 ...
8 years, 9 months ago (2012-03-23 10:47:03 UTC) #2
Bernhard Bauer
https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (left): https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc#oldcode620 chrome/browser/ui/prefs/prefs_tab_helper.cc:620: WebPreferences prefs = rvhd->GetWebkitPrefs(); Where do we fill in ...
8 years, 9 months ago (2012-03-23 10:48:14 UTC) #3
mnaganov (inactive)
https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (left): https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc#oldcode620 chrome/browser/ui/prefs/prefs_tab_helper.cc:620: WebPreferences prefs = rvhd->GetWebkitPrefs(); On 2012/03/23 10:48:14, Bernhard Bauer ...
8 years, 9 months ago (2012-03-23 10:58:23 UTC) #4
falken
https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (left): https://chromiumcodereview.appspot.com/9838050/diff/1/chrome/browser/ui/prefs/prefs_tab_helper.cc#oldcode620 chrome/browser/ui/prefs/prefs_tab_helper.cc:620: WebPreferences prefs = rvhd->GetWebkitPrefs(); On 2012/03/23 10:58:23, Mikhail Naganov ...
8 years, 9 months ago (2012-03-23 11:01:41 UTC) #5
Bernhard Bauer
https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferences.h File webkit/glue/webpreferences.h (left): https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferences.h#oldcode52 webkit/glue/webpreferences.h:52: bool images_enabled; On 2012/03/23 10:58:23, Mikhail Naganov (Chromium) wrote: ...
8 years, 9 months ago (2012-03-23 11:34:33 UTC) #6
mnaganov (inactive)
On 2012/03/23 11:34:33, Bernhard Bauer wrote: > https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferences.h > File webkit/glue/webpreferences.h (left): > > https://chromiumcodereview.appspot.com/9838050/diff/1/webkit/glue/webpreferences.h#oldcode52 ...
8 years, 9 months ago (2012-03-23 11:40:49 UTC) #7
falken
On 2012/03/23 11:40:49, Mikhail Naganov (Chromium) wrote: > On 2012/03/23 11:34:33, Bernhard Bauer wrote: > ...
8 years, 9 months ago (2012-03-23 11:56:20 UTC) #8
Bernhard Bauer
LGTM!
8 years, 9 months ago (2012-03-23 12:02:07 UTC) #9
falken
Bernhard and Mikhail, thanks for the review! Avi: chrome/browser/tab_contents OWNER Peter: chrome/browser/ui OWNER Tony: webkit ...
8 years, 9 months ago (2012-03-23 12:11:18 UTC) #10
tony
Does this turn off the xss auditor? Was it enabled before?
8 years, 9 months ago (2012-03-23 18:05:05 UTC) #11
falken
On 2012/03/23 18:05:05, tony wrote: > Does this turn off the xss auditor? Was it ...
8 years, 9 months ago (2012-03-23 18:15:48 UTC) #12
Peter Kasting
LGTM w/question http://codereview.chromium.org/9838050/diff/16/chrome/browser/ui/prefs/prefs_tab_helper.h File chrome/browser/ui/prefs/prefs_tab_helper.h (left): http://codereview.chromium.org/9838050/diff/16/chrome/browser/ui/prefs/prefs_tab_helper.h#oldcode21 chrome/browser/ui/prefs/prefs_tab_helper.h:21: class PrefsTabHelper : public content::WebContentsObserver, Can this ...
8 years, 9 months ago (2012-03-23 18:19:55 UTC) #13
mnaganov (inactive)
In Chrome xss_auditor_enabled is initialized using a command-line flag: http://code.google.com/searchframe#OAMlx_jo-ck/src/content/browser/tab_contents/tab_contents.cc&exact_package=chromium&q=xss_auditor_enabled&type=cs&l=368 So it's actually doesn't matter ...
8 years, 9 months ago (2012-03-23 18:27:53 UTC) #14
falken
I've changed the xss auditor back to enabled by default (so now there's no change ...
8 years, 9 months ago (2012-03-26 03:39:02 UTC) #15
Avi (use Gerrit)
lgtm
8 years, 9 months ago (2012-03-26 03:54:24 UTC) #16
falken
On 2012/03/26 03:54:24, Avi wrote: > lgtm Thanks. I just noticed render_view_context_menu.cc should be checking ...
8 years, 9 months ago (2012-03-26 04:38:47 UTC) #17
falken
On 2012/03/26 03:39:02, falken wrote: > I've changed the xss auditor back to enabled by ...
8 years, 9 months ago (2012-03-26 06:15:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/falken@chromium.org/9838050/9016
8 years, 9 months ago (2012-03-26 06:16:21 UTC) #19
commit-bot: I haz the power
8 years, 9 months ago (2012-03-26 07:55:05 UTC) #20
Change committed as 128871

Powered by Google App Engine
This is Rietveld 408576698