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

Issue 145023015: Introduce TranslateService and TranslateDownloadManager (Closed)

Created:
6 years, 11 months ago by droger
Modified:
6 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Introduce TranslateService and TranslateDownloadManager This CL removes the TranslateDelegate interface and introduces TranslateService and TranslateDownloadManager. This will enable (in a future CL) to move TranslateScript and TranslateLanguageList in the Translate component, and TranslateDownloadManager will own them. BUG=332736 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247724

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : Fix browsertests #

Total comments: 12

Patch Set 4 : Review comments #

Total comments: 7

Patch Set 5 : Add a bug reference #

Patch Set 6 : More review comments #

Patch Set 7 : Remove DCHECK for request context #

Total comments: 2

Patch Set 8 : Fix unittest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -124 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_browser_main.h View 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 5 chunks +5 lines, -10 lines 0 comments Download
D chrome/browser/translate/chrome_translate_delegate.h View 1 chunk +0 lines, -38 lines 0 comments Download
D chrome/browser/translate/chrome_translate_delegate.cc View 1 chunk +0 lines, -22 lines 0 comments Download
M chrome/browser/translate/translate_language_list.cc View 1 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/translate/translate_manager_browsertest.cc View 1 2 3 4 5 6 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/translate/translate_script.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/translate/translate_script_unittest.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/translate/translate_service.h View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/browser/translate/translate_service.cc View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
M chrome/browser/translate/translate_url_util.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M components/translate.gypi View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
D components/translate/core/browser/translate_delegate.h View 1 chunk +0 lines, -21 lines 0 comments Download
A components/translate/core/browser/translate_download_manager.h View 1 2 3 4 5 6 7 1 chunk +51 lines, -0 lines 0 comments Download
A components/translate/core/browser/translate_download_manager.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_url_fetcher.h View 1 2 3 4 5 3 chunks +3 lines, -7 lines 0 comments Download
M components/translate/core/browser/translate_url_fetcher.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M tools/gn/secondary/components/translate/BUILD.gn View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
droger
6 years, 11 months ago (2014-01-24 12:18:32 UTC) #1
blundell
Question before I do a full review. Also, to make sure I understand, TranslateService will ...
6 years, 11 months ago (2014-01-24 12:36:58 UTC) #2
droger
On 2014/01/24 12:36:58, blundell wrote: > Question before I do a full review. Also, to ...
6 years, 11 months ago (2014-01-24 13:40:34 UTC) #3
droger
https://codereview.chromium.org/145023015/diff/80001/components/translate/core/browser/translate_url_fetcher.cc File components/translate/core/browser/translate_url_fetcher.cc (right): https://codereview.chromium.org/145023015/diff/80001/components/translate/core/browser/translate_url_fetcher.cc#newcode54 components/translate/core/browser/translate_url_fetcher.cc:54: TranslateDownloadManager::GetInstance()->request_context()); On 2014/01/24 12:36:59, blundell wrote: > Could you ...
6 years, 11 months ago (2014-01-24 13:44:31 UTC) #4
blundell
https://codereview.chromium.org/145023015/diff/80001/components/translate/core/browser/translate_url_fetcher.cc File components/translate/core/browser/translate_url_fetcher.cc (right): https://codereview.chromium.org/145023015/diff/80001/components/translate/core/browser/translate_url_fetcher.cc#newcode54 components/translate/core/browser/translate_url_fetcher.cc:54: TranslateDownloadManager::GetInstance()->request_context()); I agree that the change is safe to ...
6 years, 11 months ago (2014-01-24 15:01:45 UTC) #5
droger
https://codereview.chromium.org/145023015/diff/80001/components/translate/core/browser/translate_url_fetcher.cc File components/translate/core/browser/translate_url_fetcher.cc (right): https://codereview.chromium.org/145023015/diff/80001/components/translate/core/browser/translate_url_fetcher.cc#newcode54 components/translate/core/browser/translate_url_fetcher.cc:54: TranslateDownloadManager::GetInstance()->request_context()); Do you mean that somehow g_browser_process->system_request_context() could change? ...
6 years, 11 months ago (2014-01-24 15:14:54 UTC) #6
droger
+mad
6 years, 11 months ago (2014-01-24 17:47:59 UTC) #7
blundell
I like the direction of this CL a lot. My question about TranslateURLFetcher was basically ...
6 years, 11 months ago (2014-01-24 17:52:43 UTC) #8
MAD
I'm Sheriffing today and Monday, so may not get to this before Tuesday... But I ...
6 years, 11 months ago (2014-01-24 18:05:14 UTC) #9
droger
On 2014/01/24 18:05:14, MAD wrote: > I'm Sheriffing today and Monday, so may not get ...
6 years, 11 months ago (2014-01-24 18:12:47 UTC) #10
droger
https://codereview.chromium.org/145023015/diff/240001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): https://codereview.chromium.org/145023015/diff/240001/chrome/browser/chrome_browser_main.cc#newcode1550 chrome/browser/chrome_browser_main.cc:1550: TranslateManager::GetInstance()->FetchLanguageListFromTranslateServer( On 2014/01/24 17:52:43, blundell wrote: > So this ...
6 years, 11 months ago (2014-01-27 14:13:43 UTC) #11
blundell
Looks good. The only thing that's a little unclear to me is the relationship between ...
6 years, 11 months ago (2014-01-27 16:02:32 UTC) #12
droger
https://codereview.chromium.org/145023015/diff/400001/chrome/browser/translate/translate_manager_browsertest.cc File chrome/browser/translate/translate_manager_browsertest.cc (right): https://codereview.chromium.org/145023015/diff/400001/chrome/browser/translate/translate_manager_browsertest.cc#newcode239 chrome/browser/translate/translate_manager_browsertest.cc:239: TranslateDownloadManager::GetInstance()->set_application_locale( On 2014/01/27 16:02:33, blundell wrote: > Should this ...
6 years, 10 months ago (2014-01-28 14:16:48 UTC) #13
MAD
lgtm
6 years, 10 months ago (2014-01-28 15:08:25 UTC) #14
blundell
LGTM https://codereview.chromium.org/145023015/diff/670001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/145023015/diff/670001/chrome/browser/browser_process_impl.cc#newcode640 chrome/browser/browser_process_impl.cc:640: TranslateDownloadManager::GetInstance()->set_application_locale(locale); I think that this line should stay ...
6 years, 10 months ago (2014-01-29 12:25:13 UTC) #15
droger
+jochen as OWNER of: chrome/browser/browser_process_impl.cc chrome/browser/chrome_browser_main.cc chrome/browser/chrome_browser_main.h
6 years, 10 months ago (2014-01-29 12:56:02 UTC) #16
jochen (gone - plz use gerrit)
lgtm
6 years, 10 months ago (2014-01-29 14:39:46 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/145023015/690001
6 years, 10 months ago (2014-01-29 14:56:42 UTC) #18
commit-bot: I haz the power
6 years, 10 months ago (2014-01-29 18:22:21 UTC) #19
Message was sent while issue was closed.
Change committed as 247724

Powered by Google App Engine
This is Rietveld 408576698