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

Issue 147973002: Move SetJavaScriptFlags() from webkit to content. (Closed)

Created:
6 years, 11 months ago by tfarina
Modified:
6 years, 10 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org
Visibility:
Public.

Description

Remove SetJavaScriptFlags() wrapper function from webkit. This function is just an helper/wrapper function around v8::V8::SetFlagsFromString() and used only by content. John preferred to just remove the wrapper and call the v8 API directly in content. Also removing it from webkit_glue.h helps with the removal of src/webkit/ directory. BUG=265753 TEST=content_shell and content_unittests R=jochen@chromium.org, jam@chromium.org TBR=darin Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247626

Patch Set 1 #

Total comments: 4

Patch Set 2 : review #

Patch Set 3 : call v8 function directly #

Patch Set 4 : #

Total comments: 5

Patch Set 5 : changes #

Total comments: 2

Patch Set 6 : fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -22 lines) Patch
M content/public/test/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/render_process_impl.cc View 1 2 3 4 5 2 chunks +11 lines, -5 lines 0 comments Download
M content/shell/renderer/shell_render_process_observer.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M content/test/test_webkit_platform_support.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M content/worker/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/worker/worker_thread.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/glue/webkit_glue.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M webkit/glue/webkit_glue.cc View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
tfarina
6 years, 11 months ago (2014-01-26 20:59:17 UTC) #1
jochen (gone - plz use gerrit)
you'll probably need to make content_child depend on v8.gyp:v8 , no? https://codereview.chromium.org/147973002/diff/1/content/shell/renderer/DEPS File content/shell/renderer/DEPS (right): ...
6 years, 11 months ago (2014-01-27 15:08:28 UTC) #2
tfarina
On 2014/01/27 15:08:28, jochen wrote: > you'll probably need to make content_child depend on v8.gyp:v8 ...
6 years, 11 months ago (2014-01-27 23:35:47 UTC) #3
tfarina
On 2014/01/27 15:08:28, jochen wrote: > you'll probably need to make content_child depend on v8.gyp:v8 ...
6 years, 11 months ago (2014-01-27 23:35:52 UTC) #4
jam
this doesn't really seem to belong on ChildThread. it seems simple to call v8::V8::SetFlagsFromString everywhere. ...
6 years, 11 months ago (2014-01-28 00:16:28 UTC) #5
tfarina
John, I made the changes you suggested. Please, take another look. Thanks!
6 years, 11 months ago (2014-01-28 02:31:09 UTC) #6
jam
https://codereview.chromium.org/147973002/diff/230001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/147973002/diff/230001/content/public/test/render_view_test.cc#newcode153 content/public/test/render_view_test.cc:153: static const char expose_gc_flags[] = "--expose-gc"; nit: seems this ...
6 years, 11 months ago (2014-01-28 07:01:26 UTC) #7
tfarina
https://codereview.chromium.org/147973002/diff/230001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/147973002/diff/230001/content/public/test/render_view_test.cc#newcode153 content/public/test/render_view_test.cc:153: static const char expose_gc_flags[] = "--expose-gc"; On 2014/01/28 07:01:26, ...
6 years, 10 months ago (2014-01-28 12:20:30 UTC) #8
jam
lgtm https://codereview.chromium.org/147973002/diff/230001/content/worker/worker_thread.cc File content/worker/worker_thread.cc (right): https://codereview.chromium.org/147973002/diff/230001/content/worker/worker_thread.cc#newcode46 content/worker/worker_thread.cc:46: static_cast<int>(strlen(switches::kJavaScriptFlags))); On 2014/01/28 12:20:31, tfarina wrote: > On ...
6 years, 10 months ago (2014-01-28 15:43:45 UTC) #9
tfarina
Darin, I'm just TBRing you for webkit/, because I'm just removing an wrapper function from ...
6 years, 10 months ago (2014-01-28 16:50:01 UTC) #10
tfarina
https://codereview.chromium.org/147973002/diff/250001/content/shell/renderer/shell_render_process_observer.cc File content/shell/renderer/shell_render_process_observer.cc (left): https://codereview.chromium.org/147973002/diff/250001/content/shell/renderer/shell_render_process_observer.cc#oldcode69 content/shell/renderer/shell_render_process_observer.cc:69: webkit_glue::SetJavaScriptFlags(" --expose-gc"); looks like removing this from here broke ...
6 years, 10 months ago (2014-01-28 16:54:26 UTC) #11
jochen (gone - plz use gerrit)
Since you're now calling v8 directly, you could just leave the call in content shell ...
6 years, 10 months ago (2014-01-28 17:02:00 UTC) #12
tfarina
On 2014/01/28 17:02:00, jochen wrote: > Since you're now calling v8 directly, you could just ...
6 years, 10 months ago (2014-01-29 00:40:14 UTC) #13
tfarina
On 2014/01/29 00:40:14, tfarina wrote: > On 2014/01/28 17:02:00, jochen wrote: > > Since you're ...
6 years, 10 months ago (2014-01-29 00:40:22 UTC) #14
tfarina
On 2014/01/28 17:02:00, jochen wrote: > Since you're now calling v8 directly, you could just ...
6 years, 10 months ago (2014-01-29 00:41:08 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/147973002/230002
6 years, 10 months ago (2014-01-29 00:43:45 UTC) #16
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=217620
6 years, 10 months ago (2014-01-29 01:54:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/147973002/230002
6 years, 10 months ago (2014-01-29 02:01:08 UTC) #18
commit-bot: I haz the power
6 years, 10 months ago (2014-01-29 05:22:15 UTC) #19
Message was sent while issue was closed.
Change committed as 247626

Powered by Google App Engine
This is Rietveld 408576698