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

Issue 357203003: Move webpreferences.* from webkit/ to content/ (Closed)

Created:
6 years, 5 months ago by tfarina
Modified:
6 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, piman+watch_chromium.org, chromium-apps-reviews_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org, miu+watch_chromium.org, pilgrim_google, darin (slow to review), jochen (gone - plz use gerrit), jamesr, Bernhard Bauer, dmichael (off chromium)
Project:
chromium
Visibility:
Public.

Description

Move webpreferences.* from webkit/ to content/ BUG=338338 TEST=None R=jam@chromium.org TBR=boliu@chromium.org # for android_webview TBR=bauerb@chromium.org # for components/plugins TBR=dmichael@chromium.org # for ppapi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281978

Patch Set 1 #

Total comments: 2

Patch Set 2 : content_shell fix #

Patch Set 3 : revert gn change #

Patch Set 4 : unit_tests fix #

Patch Set 5 : android_webview fixes #

Patch Set 6 : webpreferences needs icu - fix GN build? #

Patch Set 7 : android fix #

Patch Set 8 : ppapi_preferences_builder.cc #

Patch Set 9 : ApplyWebPreferences #

Patch Set 10 : ApplyWebPreferences implementation #

Patch Set 11 : web_preferences.* #

Patch Set 12 : add ppapi_preferences_builder #

Patch Set 13 : android_webview fix #

Patch Set 14 : one more android_webview fix #

Patch Set 15 : missed a comma - fix android_webview #

Total comments: 2

Patch Set 16 : add comment #

Total comments: 8

Patch Set 17 : boliu review #

Patch Set 18 : RenderView::FromWebView #

Total comments: 4

Patch Set 19 : static #

Patch Set 20 : android fix - webview() -> web_view #

Unified diffs Side-by-side diffs Delta from patch set Stats (+588 lines, -975 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -3 lines 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +5 lines, -4 lines 0 comments Download
M android_webview/browser/aw_web_preferences_populater.h View 2 chunks +2 lines, -3 lines 0 comments Download
M android_webview/browser/aw_web_preferences_populater.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/native/aw_settings.h View 2 chunks +3 lines, -1 line 0 comments Download
M android_webview/native/aw_settings.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +8 lines, -7 lines 0 comments Download
M android_webview/native/aw_web_preferences_populater_impl.h View 2 chunks +2 lines, -9 lines 0 comments Download
M android_webview/native/aw_web_preferences_populater_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/android/voice_search_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_webkit_preferences.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_webkit_preferences.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/gpu_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/prefs/chrome_pref_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/printing/print_dialog_cloud.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/printing/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +6 lines, -6 lines 0 comments Download
M components/plugins/renderer/webview_plugin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +7 lines, -4 lines 0 comments Download
M components/plugins/renderer/webview_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 4 chunks +4 lines, -3 lines 0 comments Download
M content/browser/android/content_settings.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_data_manager_impl.h View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/gpu/gpu_data_manager_impl_private.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 2 chunks +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -1 line 0 comments Download
M content/child/browser_font_resource_trusted.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -5 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +3 lines, -3 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -1 line 0 comments Download
M content/public/browser/render_view_host.h View 3 chunks +10 lines, -10 lines 0 comments Download
M content/public/common/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +4 lines, -4 lines 0 comments Download
A + content/public/common/web_preferences.h View 1 2 3 4 5 6 7 8 9 10 5 chunks +24 lines, -28 lines 0 comments Download
A + content/public/common/web_preferences.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +33 lines, -39 lines 0 comments Download
M content/public/renderer/render_frame.h View 2 chunks +1 line, -2 lines 0 comments Download
M content/public/renderer/render_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +5 lines, -2 lines 0 comments Download
M content/public/renderer/web_preferences.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -23 lines 0 comments Download
M content/public/test/web_contents_tester.h View 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_in_process_resource_creation.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M content/renderer/pepper/plugin_module.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +6 lines, -5 lines 0 comments Download
A content/renderer/pepper/ppapi_preferences_builder.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
A content/renderer/pepper/ppapi_preferences_builder.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +32 lines, -0 lines 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/render_view_browsertest_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +316 lines, -1 line 0 comments Download
M content/renderer/render_view_impl_params.h View 2 chunks +1 line, -2 lines 0 comments Download
M content/renderer/web_preferences.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -340 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -1 line 0 comments Download
M content/shell/browser/webkit_test_controller.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/shell/common/shell_messages.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/shell/common/webkit_test_helpers.h View 1 chunk +1 line, -4 lines 0 comments Download
M content/shell/common/webkit_test_helpers.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +15 lines, -22 lines 0 comments Download
M content/shell/renderer/webkit_test_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -1 line 0 comments Download
M content/test/test_render_view_host.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M content/test/test_web_contents.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ppapi/shared_impl/DEPS View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/shared_impl/ppapi_preferences.h View 1 2 3 4 5 6 7 1 chunk +10 lines, -8 lines 0 comments Download
M ppapi/shared_impl/ppapi_preferences.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -15 lines 0 comments Download
M webkit/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -2 lines 0 comments Download
M webkit/common/webkit_common.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +0 lines, -2 lines 0 comments Download
D webkit/common/webpreferences.h View 1 chunk +0 lines, -191 lines 0 comments Download
D webkit/common/webpreferences.cc View 1 chunk +0 lines, -176 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
tfarina
https://codereview.chromium.org/357203003/diff/1/content/content_common.gypi File content/content_common.gypi (right): https://codereview.chromium.org/357203003/diff/1/content/content_common.gypi#newcode128 content/content_common.gypi:128: 'public/common/webpreferences.cc', had to keep it webpreferences.cc because there is ...
6 years, 5 months ago (2014-06-28 19:59:20 UTC) #1
jam
also do my comment from https://codereview.chromium.org/147373005/, ppapi can't depend on content https://codereview.chromium.org/357203003/diff/1/content/content_common.gypi File content/content_common.gypi (right): ...
6 years, 5 months ago (2014-06-30 04:36:59 UTC) #2
tfarina
all done. ptal
6 years, 5 months ago (2014-07-01 02:35:36 UTC) #3
tfarina
John, ping?
6 years, 5 months ago (2014-07-02 18:10:19 UTC) #4
jam
lgtm, sorry I missed the earlier ping https://codereview.chromium.org/357203003/diff/280001/content/public/renderer/render_view.h File content/public/renderer/render_view.h (right): https://codereview.chromium.org/357203003/diff/280001/content/public/renderer/render_view.h#newcode76 content/public/renderer/render_view.h:76: virtual void ...
6 years, 5 months ago (2014-07-02 18:33:24 UTC) #5
tfarina
TBRing owners: android_webview -> boliu components/plugins -> bauerb ppapi -> dmichael Thanks, https://codereview.chromium.org/357203003/diff/280001/content/public/renderer/render_view.h File content/public/renderer/render_view.h ...
6 years, 5 months ago (2014-07-02 23:57:36 UTC) #6
boliu
https://codereview.chromium.org/357203003/diff/300001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/357203003/diff/300001/android_webview/browser/aw_content_browser_client.cc#newcode40 android_webview/browser/aw_content_browser_client.cc:40: using content::WebPreferences; This is only used at once place ...
6 years, 5 months ago (2014-07-03 00:17:35 UTC) #7
tfarina
https://codereview.chromium.org/357203003/diff/300001/android_webview/browser/aw_content_browser_client.cc File android_webview/browser/aw_content_browser_client.cc (right): https://codereview.chromium.org/357203003/diff/300001/android_webview/browser/aw_content_browser_client.cc#newcode40 android_webview/browser/aw_content_browser_client.cc:40: using content::WebPreferences; On 2014/07/03 00:17:35, boliu wrote: > This ...
6 years, 5 months ago (2014-07-03 00:50:14 UTC) #8
boliu
https://codereview.chromium.org/357203003/diff/300001/android_webview/renderer/print_web_view_helper.cc File android_webview/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/357203003/diff/300001/android_webview/renderer/print_web_view_helper.cc#newcode673 android_webview/renderer/print_web_view_helper.cc:673: render_view_->ApplyWebPreferences(prefs); On 2014/07/03 00:50:14, tfarina wrote: > On 2014/07/03 ...
6 years, 5 months ago (2014-07-03 00:59:14 UTC) #9
Bernhard Bauer
components/plugins/ LGTM
6 years, 5 months ago (2014-07-03 09:56:59 UTC) #10
tfarina
boliu, ptal. https://codereview.chromium.org/357203003/diff/300001/android_webview/renderer/print_web_view_helper.cc File android_webview/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/357203003/diff/300001/android_webview/renderer/print_web_view_helper.cc#newcode673 android_webview/renderer/print_web_view_helper.cc:673: render_view_->ApplyWebPreferences(prefs); On 2014/07/03 00:59:13, boliu wrote: > ...
6 years, 5 months ago (2014-07-03 13:19:36 UTC) #11
boliu
aw lgtm
6 years, 5 months ago (2014-07-03 14:13:33 UTC) #12
tfarina
On 2014/07/03 14:13:33, boliu wrote: > aw lgtm browser_tests didn't like this change, see below ...
6 years, 5 months ago (2014-07-03 16:06:49 UTC) #13
boliu
https://codereview.chromium.org/357203003/diff/330001/android_webview/renderer/print_web_view_helper.cc File android_webview/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/357203003/diff/330001/android_webview/renderer/print_web_view_helper.cc#newcode674 android_webview/renderer/print_web_view_helper.cc:674: ->ApplyWebPreferences(prefs); Ohh, now I understand. Printing is creating its ...
6 years, 5 months ago (2014-07-03 16:49:32 UTC) #14
tfarina
https://codereview.chromium.org/357203003/diff/330001/android_webview/renderer/print_web_view_helper.cc File android_webview/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/357203003/diff/330001/android_webview/renderer/print_web_view_helper.cc#newcode674 android_webview/renderer/print_web_view_helper.cc:674: ->ApplyWebPreferences(prefs); On 2014/07/03 16:49:32, boliu wrote: > Ohh, now ...
6 years, 5 months ago (2014-07-03 17:25:34 UTC) #15
dmichael (off chromium)
pepper lgtm https://codereview.chromium.org/357203003/diff/330001/content/renderer/pepper/ppapi_preferences_builder.h File content/renderer/pepper/ppapi_preferences_builder.h (right): https://codereview.chromium.org/357203003/diff/330001/content/renderer/pepper/ppapi_preferences_builder.h#newcode19 content/renderer/pepper/ppapi_preferences_builder.h:19: }; nit: It would be good to ...
6 years, 5 months ago (2014-07-07 17:03:35 UTC) #16
tfarina
John suggested making it a static method on RenderView. Which I did in patch set ...
6 years, 5 months ago (2014-07-09 01:29:49 UTC) #17
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 5 months ago (2014-07-09 01:29:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/357203003/350001
6 years, 5 months ago (2014-07-09 01:31:55 UTC) #19
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 5 months ago (2014-07-09 01:48:30 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/357203003/370001
6 years, 5 months ago (2014-07-09 01:49:52 UTC) #21
commit-bot: I haz the power
Change committed as 281978
6 years, 5 months ago (2014-07-09 06:25:19 UTC) #22
tfarina
6 years, 5 months ago (2014-07-15 00:47:32 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/357203003/diff/330001/content/renderer/pepper...
File content/renderer/pepper/ppapi_preferences_builder.h (right):

https://codereview.chromium.org/357203003/diff/330001/content/renderer/pepper...
content/renderer/pepper/ppapi_preferences_builder.h:19: };
On 2014/07/07 17:03:34, dmichael wrote:
> nit: It would be good to add
>  private:
>   DISALLOW_COPY_AND_ASSIGN(PpapiPreferencesBuilder());
> 
> ...to prevent misuse, since it appears there's no reason to construct one.
That
> not only takes care of copy and assign, but also implicitly ensures the
compiler
> won't give us a default constructor.

I will address this separately. None of the builder.h files in content/ were
using DISALLOW_IMPLICIT_CONSTRUCTORS.

So I will make a patch to make all of them use DISALLOW_IMPLICIT_CONSTRUCTORS.

Powered by Google App Engine
This is Rietveld 408576698