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

Issue 564743002: Move Translate browser-side IPC handling to the component. (Closed)

Created:
6 years, 3 months ago by droger
Modified:
6 years, 3 months ago
Reviewers:
Takashi Toyoshima, msw
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move Translate browser-side IPC handling to the component. This CL moves a bit of translate logic from chrome/ to the translate component. Some IPC messages are still forwarded to chrome (through ContentTranslateDriver::Observer) because of translate notifications. This is temporary though, because once translate notifications are removed, ChromeTranslateClient will no longer need to be an Observer. Another motivation for this change is that the renderer-side of translate IPC (TranslateHelper) is moving to the component (in another CL), and thus the browser-side has to move too for consistency (this CL). BUG=335087 TBR=msw Committed: https://crrev.com/38f0d1063fefeba088320c4932c51061f0922f74 Cr-Commit-Position: refs/heads/master@{#295073}

Patch Set 1 : #

Total comments: 5

Patch Set 2 : Fix comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -61 lines) Patch
M chrome/browser/translate/chrome_translate_client.h View 1 5 chunks +9 lines, -13 lines 0 comments Download
M chrome/browser/translate/chrome_translate_client.cc View 1 5 chunks +9 lines, -28 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 chunk +7 lines, -6 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.h View 6 chunks +28 lines, -5 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.cc View 4 chunks +55 lines, -9 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
droger
6 years, 3 months ago (2014-09-11 13:50:04 UTC) #4
Takashi Toyoshima
Sorry, I was out of my desk in a few days. I might be confused ...
6 years, 3 months ago (2014-09-16 06:32:47 UTC) #5
droger
https://codereview.chromium.org/564743002/diff/40001/chrome/browser/translate/chrome_translate_client.cc File chrome/browser/translate/chrome_translate_client.cc (right): https://codereview.chromium.org/564743002/diff/40001/chrome/browser/translate/chrome_translate_client.cc#newcode283 chrome/browser/translate/chrome_translate_client.cc:283: // TranslateDriver::Observer directly instead. On 2014/09/16 06:32:47, Takashi Toyoshima ...
6 years, 3 months ago (2014-09-16 10:57:13 UTC) #6
Takashi Toyoshima
Thanks. LGTM.
6 years, 3 months ago (2014-09-16 11:36:23 UTC) #7
droger
TBR=msw for chrome/browser/ui/browser.cc
6 years, 3 months ago (2014-09-16 15:03:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/564743002/60001
6 years, 3 months ago (2014-09-16 15:04:00 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:60001) as e64c37d777fe61fb2c98c20d0339d3accae0d112
6 years, 3 months ago (2014-09-16 15:38:35 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/38f0d1063fefeba088320c4932c51061f0922f74 Cr-Commit-Position: refs/heads/master@{#295073}
6 years, 3 months ago (2014-09-16 15:40:26 UTC) #13
msw
6 years, 3 months ago (2014-09-16 18:55:10 UTC) #14
Message was sent while issue was closed.
c/b/ui/browser.cc rubber stamp lgtm

Powered by Google App Engine
This is Rietveld 408576698