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

Issue 93603006: Move Translate-related files to components/translate (Closed)

Created:
6 years, 11 months ago by droger
Modified:
6 years, 11 months ago
Reviewers:
tfarina, MAD, blundell
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Move Translate-related files to components/translate This CL moves a few files to the translate component. It also layers the structure of the component so that it is better suited for iOS. BUG=331509 TBR=jochen, joi Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243319

Patch Set 1 #

Patch Set 2 : Fix the gn build #

Patch Set 3 : Fix include order #

Total comments: 2

Patch Set 4 : alphabetize BUILD.gn #

Total comments: 8

Patch Set 5 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -1128 lines) Patch
M BUILD.gn View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/DEPS View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/translate/page_translated_details.h View 1 chunk +0 lines, -19 lines 0 comments Download
M chrome/browser/translate/translate_accept_languages.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/translate/translate_error_details.h View 1 chunk +0 lines, -23 lines 0 comments Download
D chrome/browser/translate/translate_event_details.h View 1 chunk +0 lines, -30 lines 0 comments Download
D chrome/browser/translate/translate_event_details.cc View 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_language_list.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_manager.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_prefs.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_script.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_tab_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_tab_helper.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/translate/translate_ui_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/translate_ui_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_window.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_base.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/startup/bad_flags_prompt.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/translate/translate_bubble_factory.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/translate/translate_bubble_model.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/translate_internals/translate_internals_handler.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/render_messages.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
D chrome/common/translate/language_detection_details.h View 1 chunk +0 lines, -43 lines 0 comments Download
D chrome/common/translate/language_detection_details.cc View 1 chunk +0 lines, -9 lines 0 comments Download
D chrome/common/translate/translate_errors.h View 1 chunk +0 lines, -41 lines 0 comments Download
M chrome/renderer/DEPS View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/translate/translate_helper.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/translate/translate_helper.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/renderer/translate/translate_helper_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/translate/translate_script_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/components_tests.gyp View 3 chunks +5 lines, -5 lines 0 comments Download
M components/translate.gypi View 1 2 3 4 2 chunks +31 lines, -10 lines 0 comments Download
M components/translate/README View 1 2 3 4 1 chunk +16 lines, -5 lines 0 comments Download
D components/translate/common/translate_constants.h View 1 chunk +0 lines, -16 lines 0 comments Download
D components/translate/common/translate_constants.cc View 1 chunk +0 lines, -11 lines 0 comments Download
D components/translate/common/translate_metrics.h View 1 chunk +0 lines, -104 lines 0 comments Download
D components/translate/common/translate_metrics.cc View 1 chunk +0 lines, -130 lines 0 comments Download
D components/translate/common/translate_metrics_unittest.cc View 1 chunk +0 lines, -284 lines 0 comments Download
D components/translate/common/translate_switches.h View 1 chunk +0 lines, -16 lines 0 comments Download
D components/translate/common/translate_switches.cc View 1 chunk +0 lines, -14 lines 0 comments Download
D components/translate/common/translate_util.h View 1 chunk +0 lines, -28 lines 0 comments Download
D components/translate/common/translate_util.cc View 1 chunk +0 lines, -125 lines 0 comments Download
D components/translate/common/translate_util_unittest.cc View 1 chunk +0 lines, -96 lines 0 comments Download
A + components/translate/core/browser/page_translated_details.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/translate/core/browser/translate_error_details.h View 2 chunks +4 lines, -4 lines 0 comments Download
A + components/translate/core/browser/translate_event_details.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/browser/translate_event_details.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/translate/core/common/language_detection_details.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/common/language_detection_details.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/translate/core/common/translate_constants.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/common/translate_constants.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/translate/core/common/translate_errors.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/common/translate_metrics.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/common/translate_metrics.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/translate/core/common/translate_metrics_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/translate/core/common/translate_switches.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/common/translate_switches.cc View 1 chunk +1 line, -1 line 0 comments Download
A + components/translate/core/common/translate_util.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + components/translate/core/common/translate_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + components/translate/core/common/translate_util_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/translate/language_detection/language_detection_util.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M components/translate/language_detection/language_detection_util_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M tools/gn/secondary/components/translate/BUILD.gn View 1 2 3 1 chunk +28 lines, -9 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
droger
I assume we need to wrap everything in the "translate" namespace?
6 years, 11 months ago (2014-01-03 11:51:36 UTC) #1
tfarina
Can you see if this does not break the gn build? $ gn $ ninja ...
6 years, 11 months ago (2014-01-03 11:54:00 UTC) #2
droger
On 2014/01/03 11:54:00, tfarina wrote: > Can you see if this does not break the ...
6 years, 11 months ago (2014-01-03 12:46:48 UTC) #3
droger
On 2014/01/03 12:46:48, droger wrote: > On 2014/01/03 11:54:00, tfarina wrote: > > Can you ...
6 years, 11 months ago (2014-01-03 12:58:24 UTC) #4
tfarina
GN changes lgtm, minor two requests below. Thanks for fixing them! https://codereview.chromium.org/93603006/diff/290001/tools/gn/secondary/components/translate/BUILD.gn File tools/gn/secondary/components/translate/BUILD.gn (right): ...
6 years, 11 months ago (2014-01-03 14:03:17 UTC) #5
droger
On 2014/01/03 14:03:17, tfarina wrote: > GN changes lgtm, minor two requests below. > > ...
6 years, 11 months ago (2014-01-03 14:28:46 UTC) #6
blundell
LGTM with small questions. You should add a DEPS and README file to //components/translate to ...
6 years, 11 months ago (2014-01-06 12:04:52 UTC) #7
blundell
+mad for OWNERS.
6 years, 11 months ago (2014-01-06 12:08:02 UTC) #8
droger
Thanks for the review. I changed the README. https://codereview.chromium.org/93603006/diff/370001/chrome/chrome_common.gypi File chrome/chrome_common.gypi (right): https://codereview.chromium.org/93603006/diff/370001/chrome/chrome_common.gypi#newcode42 chrome/chrome_common.gypi:42: '<(DEPTH)/content/content.gyp:content_common', ...
6 years, 11 months ago (2014-01-06 13:21:30 UTC) #9
MAD
LGTM... Thanks! BYE MAD
6 years, 11 months ago (2014-01-07 15:49:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/93603006/710001
6 years, 11 months ago (2014-01-07 16:01:26 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-07 17:34:22 UTC) #12
Message was sent while issue was closed.
Change committed as 243319

Powered by Google App Engine
This is Rietveld 408576698