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

Issue 2143383002: [Translate] Migrate IPCs to Mojo interfaces. (Closed)

Created:
4 years, 5 months ago by leonhsl(Using Gerrit)
Modified:
4 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blundell+watchlist_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, droger+watchlist_chromium.org, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, sdefresne+watchlist_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Translate] Migrate IPCs to Mojo interfaces. BUG=619390 TEST=browser_tests, unit_tests Committed: https://crrev.com/3134fc62afcbbc25e0deeb674e5252be9f458d7b Cr-Commit-Position: refs/heads/master@{#410992}

Patch Set 1 : Identical with ps#6 of old CL 2066483004 #

Patch Set 2 : Add browser tests. No gyp, No unit tests #

Total comments: 4

Patch Set 3 : Add unit tests #

Patch Set 4 : Rebase #

Patch Set 5 : Fix trybots failure caused by rebase #

Patch Set 6 : Fix trybots #

Patch Set 7 : Fix unit tests #

Patch Set 8 : Fix unit tests #

Patch Set 9 : Fix unit tests #

Patch Set 10 : Fix unit tests #

Patch Set 11 : Fix unit tests #

Patch Set 12 : Fix unit tests #

Total comments: 16

Patch Set 13 : Fix unit tests #

Patch Set 14 : Rebase only #

Patch Set 15 : Address comments from Ken and Anand #

Total comments: 10

Patch Set 16 : Address comments from Ken #

Total comments: 6

Patch Set 17 : Address comments from Tom #

Total comments: 8

Patch Set 18 : Address comments from groby #

Patch Set 19 : Put public/* into common/ #

Total comments: 1

Patch Set 20 : Rebase only #

Patch Set 21 : Fix trybots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+806 lines, -442 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -0 lines 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 19 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/translate/chrome_translate_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/translate/chrome_translate_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +21 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 27 chunks +101 lines, -50 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +56 lines, -8 lines 0 comments Download
M chrome/renderer/translate/translate_helper_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 13 chunks +156 lines, -113 lines 0 comments Download
M components/translate.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +19 lines, -11 lines 0 comments Download
M components/translate/content/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M components/translate/content/browser/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, -1 line 0 comments Download
M components/translate/content/browser/content_translate_driver.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +28 lines, -12 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 5 chunks +36 lines, -31 lines 0 comments Download
D components/translate/content/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +7 lines, -11 lines 0 comments Download
A + components/translate/content/common/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/translate/content/common/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +2 lines, -3 lines 0 comments Download
A components/translate/content/common/translate.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +65 lines, -0 lines 0 comments Download
A components/translate/content/common/translate.typemap View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +23 lines, -0 lines 0 comments Download
D components/translate/content/common/translate_messages.h View 1 chunk +0 lines, -67 lines 0 comments Download
D components/translate/content/common/translate_messages.cc View 1 chunk +0 lines, -39 lines 0 comments Download
A components/translate/content/common/translate_struct_traits.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +76 lines, -0 lines 0 comments Download
A components/translate/content/common/translate_struct_traits.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +120 lines, -0 lines 0 comments Download
M components/translate/content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -1 line 0 comments Download
M components/translate/content/renderer/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/translate/content/renderer/translate_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 7 chunks +24 lines, -24 lines 0 comments Download
M components/translate/content/renderer/translate_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 12 chunks +59 lines, -67 lines 0 comments Download
M components/typemaps.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -0 lines 0 comments Download
M ipc/ipc_message_start.h View 1 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M tools/ipc_fuzzer/message_lib/all_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 93 (58 generated)
leonhsl(Using Gerrit)
This is the new CL. Thanks.
4 years, 5 months ago (2016-07-13 10:06:16 UTC) #2
leonhsl(Using Gerrit)
ps#2 added changes for browser tests and locally confirmed PASS. But I have a question ...
4 years, 5 months ago (2016-07-15 12:43:22 UTC) #6
leonhsl(Using Gerrit)
Ping~
4 years, 5 months ago (2016-07-20 02:08:45 UTC) #9
Anand Mistry (off Chromium)
I'm leaving the chromium project. You should get someone else to review for Mojo. https://codereview.chromium.org/2143383002/diff/20001/chrome/browser/translate/chrome_translate_client.cc ...
4 years, 5 months ago (2016-07-20 13:06:33 UTC) #10
leonhsl(Using Gerrit)
On 2016/07/20 13:06:33, Anand Mistry wrote: > I'm leaving the chromium project. You should get ...
4 years, 5 months ago (2016-07-21 03:27:40 UTC) #11
leonhsl(Using Gerrit)
+Ken +Sam Would you PTAL at this as Mojo experts? Ping groby for the question ...
4 years, 5 months ago (2016-07-21 05:43:21 UTC) #13
groby-ooo-7-16
https://codereview.chromium.org/2143383002/diff/20001/chrome/browser/translate/translate_manager_render_view_host_unittest.cc File chrome/browser/translate/translate_manager_render_view_host_unittest.cc (right): https://codereview.chromium.org/2143383002/diff/20001/chrome/browser/translate/translate_manager_render_view_host_unittest.cc#newcode662 chrome/browser/translate/translate_manager_render_view_host_unittest.cc:662: #if !defined(USE_AURA) On 2016/07/15 12:43:22, leonhsl wrote: > Hi, ...
4 years, 5 months ago (2016-07-21 14:41:29 UTC) #14
Ken Rockot(use gerrit already)
Very sorry for the long delay, this review fell off my radar. Mostly just nits ...
4 years, 4 months ago (2016-07-28 20:16:07 UTC) #23
leonhsl(Using Gerrit)
Hi, Ken, Thank you very much for comments and suggestions! Uploaded ps#15 to address comments ...
4 years, 4 months ago (2016-07-29 12:54:32 UTC) #30
Ken Rockot(use gerrit already)
as a total non-owner, all mojo bits lgtm % some nits https://codereview.chromium.org/2143383002/diff/270001/components/translate/content/browser/content_translate_driver.h File components/translate/content/browser/content_translate_driver.h (right): ...
4 years, 4 months ago (2016-07-29 17:21:17 UTC) #33
leonhsl(Using Gerrit)
Uploaded ps#16 to address nits. Thanks Ken! +Tom Would you PTAL for security review, Thanks. ...
4 years, 4 months ago (2016-07-30 08:45:07 UTC) #39
Tom Sepez
LGTM with comments. https://codereview.chromium.org/2143383002/diff/290001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2143383002/diff/290001/chrome/browser/chrome_content_browser_client.cc#newcode2828 chrome/browser/chrome_content_browser_client.cc:2828: // Register mojo ContentTranslateDriver interface only ...
4 years, 4 months ago (2016-08-01 17:08:17 UTC) #40
jam
drive-by: why create a components/translate/content/public/cpp/ directory? That seems unnecessary, they can just go into components/translate/content/common
4 years, 4 months ago (2016-08-01 17:14:43 UTC) #42
leonhsl(Using Gerrit)
On 2016/08/01 17:14:43, jam wrote: > drive-by: why create a components/translate/content/public/cpp/ directory? That > seems ...
4 years, 4 months ago (2016-08-02 02:11:39 UTC) #43
leonhsl(Using Gerrit)
Thanks Tom a lot for the review, uploaded ps#17 to address comments, PTAnL, Thanks. https://codereview.chromium.org/2143383002/diff/290001/chrome/browser/chrome_content_browser_client.cc ...
4 years, 4 months ago (2016-08-02 02:52:24 UTC) #47
leonhsl(Using Gerrit)
Soft ping groby@ for translate OWNER review, Thanks.
4 years, 4 months ago (2016-08-02 07:33:18 UTC) #50
Tom Sepez
++LGTM
4 years, 4 months ago (2016-08-02 18:26:17 UTC) #51
groby-ooo-7-16
https://codereview.chromium.org/2143383002/diff/330001/components/translate/content/browser/content_translate_driver.cc File components/translate/content/browser/content_translate_driver.cc (right): https://codereview.chromium.org/2143383002/diff/330001/components/translate/content/browser/content_translate_driver.cc#newcode219 components/translate/content/browser/content_translate_driver.cc:219: void ContentTranslateDriver::OnPageAway(int page_seq_no) { Not quite clear what that ...
4 years, 4 months ago (2016-08-04 02:35:58 UTC) #52
leonhsl(Using Gerrit)
Thanks groby a lot for review. Uploaded ps#18 to address comments, PTAnL, Thanks. https://codereview.chromium.org/2143383002/diff/330001/components/translate/content/browser/content_translate_driver.cc File ...
4 years, 4 months ago (2016-08-04 08:41:09 UTC) #58
groby-ooo-7-16
Thank you, and LGTM!
4 years, 4 months ago (2016-08-04 13:47:47 UTC) #59
leonhsl(Using Gerrit)
Hi, John, would you PTAL for OWNER review of bellowing? Thanks. chrome/ except tranlsate bits ...
4 years, 4 months ago (2016-08-04 16:33:08 UTC) #60
jam
On 2016/08/02 02:11:39, leonhsl wrote: > On 2016/08/01 17:14:43, jam wrote: > > drive-by: why ...
4 years, 4 months ago (2016-08-09 00:29:11 UTC) #61
leonhsl(Using Gerrit)
On 2016/08/09 00:29:11, jam wrote: > On 2016/08/02 02:11:39, leonhsl wrote: > > On 2016/08/01 ...
4 years, 4 months ago (2016-08-09 12:40:57 UTC) #70
jam
lgtm https://codereview.chromium.org/2143383002/diff/390001/components/translate/content/common/translate_struct_traits.cc File components/translate/content/common/translate_struct_traits.cc (right): https://codereview.chromium.org/2143383002/diff/390001/components/translate/content/common/translate_struct_traits.cc#newcode7 components/translate/content/common/translate_struct_traits.cc:7: #include "ipc/ipc_message_utils.h" nit: do you need this?
4 years, 4 months ago (2016-08-09 22:22:18 UTC) #71
leonhsl(Using Gerrit)
On 2016/08/09 22:22:18, jam wrote: > lgtm > > https://codereview.chromium.org/2143383002/diff/390001/components/translate/content/common/translate_struct_traits.cc > File components/translate/content/common/translate_struct_traits.cc (right): > ...
4 years, 4 months ago (2016-08-10 02:13:50 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2143383002/390001
4 years, 4 months ago (2016-08-10 02:15:26 UTC) #75
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/234554)
4 years, 4 months ago (2016-08-10 02:22:31 UTC) #77
leonhsl(Using Gerrit)
On 2016/08/10 02:22:31, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 4 months ago (2016-08-10 02:35:51 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2143383002/410001
4 years, 4 months ago (2016-08-10 02:36:59 UTC) #81
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/270560)
4 years, 4 months ago (2016-08-10 03:36:56 UTC) #83
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2143383002/430001
4 years, 4 months ago (2016-08-10 05:53:37 UTC) #88
commit-bot: I haz the power
Committed patchset #21 (id:430001)
4 years, 4 months ago (2016-08-10 07:26:15 UTC) #89
commit-bot: I haz the power
Patchset 21 (id:??) landed as https://crrev.com/3134fc62afcbbc25e0deeb674e5252be9f458d7b Cr-Commit-Position: refs/heads/master@{#410992}
4 years, 4 months ago (2016-08-10 07:28:36 UTC) #91
xidachen
A revert of this CL (patchset #21 id:430001) has been created in https://codereview.chromium.org/2232233002/ by xidachen@chromium.org. ...
4 years, 4 months ago (2016-08-11 13:36:25 UTC) #92
xidachen
4 years, 4 months ago (2016-08-11 13:42:58 UTC) #93
Message was sent while issue was closed.
On 2016/08/11 13:36:25, xidachen wrote:
> A revert of this CL (patchset #21 id:430001) has been created in
> https://codereview.chromium.org/2232233002/ by mailto:xidachen@chromium.org.
> 
> The reason for reverting is: suspect this CL causes compilation failure:
> https://build.chromium.org/p/chromium/builders/Win/builds/46119
> Error message:
> src\components\translate\content\browser\content_translate_driver.h(13): fatal
> error C1083: Cannot open include file:
> 'components/translate/content/common/translate.mojom.h': No such file or
> directory.

sorry, my bad. It looks like the compile error is due to a flaky bot. This CL is
not reverted.

Powered by Google App Engine
This is Rietveld 408576698