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

Issue 290573013: LanguageState should be owned by TranslateManager (Closed)

Created:
6 years, 7 months ago by nshaik
Modified:
6 years, 6 months ago
CC:
sdefresne, chromium-reviews, darin-cc_chromium.org, jam, MAD, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

LanguageState should be owned by TranslateManager LanguageState is currently owned by ContentTranslateManager, but it should be moved under TranslateManager BUG=345690 TEST=components_unittests --gtest_filter=Translate* TBR=sky,dconnelly,kalman Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276320

Patch Set 1 #

Patch Set 2 : Updated as per review comments #

Patch Set 3 : Inlining the DidNavigate function #

Total comments: 12

Patch Set 4 : Removing unwanted header files and forward declarations #

Patch Set 5 : Deleting unwanted forward references #

Total comments: 2

Patch Set 6 : rebase to ToT and add comment for function #

Patch Set 7 : Fixing build error on Windows #

Patch Set 8 : Fixing the asan reported issues #

Patch Set 9 : Tested for asan issue on linux #

Total comments: 4

Patch Set 10 : Removing TranslateClient from TranslateUIDelegate #

Patch Set 11 : Fixing incorrect UMA Histogram #

Patch Set 12 : Adding TBR for CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -94 lines) Patch
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/translate/chrome_translate_client.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/translate/chrome_translate_client.cc View 1 2 3 4 5 6 7 8 chunks +13 lines, -8 lines 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_commands.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.h View 1 2 3 4 5 3 chunks +1 line, -8 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.cc View 1 2 3 4 5 3 chunks +0 lines, -15 lines 0 comments Download
M components/translate/core/browser/language_state_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M components/translate/core/browser/translate_driver.h View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
M components/translate/core/browser/translate_infobar_delegate.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -6 lines 0 comments Download
M components/translate/core/browser/translate_manager.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_manager.cc View 1 2 3 4 5 6 7 7 chunks +20 lines, -16 lines 0 comments Download
M components/translate/core/browser/translate_ui_delegate.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -4 lines 0 comments Download
M components/translate/core/browser/translate_ui_delegate.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +27 lines, -20 lines 0 comments Download

Messages

Total messages: 52 (0 generated)
nshaik
6 years, 7 months ago (2014-05-16 22:14:29 UTC) #1
Charlie Reis
I'm not an owner for any of these files, and I'm about to disappear on ...
6 years, 7 months ago (2014-05-16 22:26:03 UTC) #2
nshaik
adding owners for review as suggested by git cl
6 years, 7 months ago (2014-05-16 22:57:42 UTC) #3
blundell
mad@, blundell@ to CC. droger@ is the best reviewer for this CL.
6 years, 7 months ago (2014-05-19 07:52:11 UTC) #4
blundell
6 years, 7 months ago (2014-05-19 07:52:28 UTC) #5
droger
Thanks, this is great. There is one problem though: there should be no reference to ...
6 years, 7 months ago (2014-05-19 10:02:32 UTC) #6
droger
I just noticed that actually DidNavigate() is only called from one place, which is in ...
6 years, 7 months ago (2014-05-19 11:37:45 UTC) #7
nshaik
Updated as per review comments, please review
6 years, 7 months ago (2014-05-20 07:08:10 UTC) #8
droger
LGTM Please fix the following before committing though: https://codereview.chromium.org/290573013/diff/40001/chrome/browser/translate/translate_tab_helper.h File chrome/browser/translate/translate_tab_helper.h (right): https://codereview.chromium.org/290573013/diff/40001/chrome/browser/translate/translate_tab_helper.h#newcode34 chrome/browser/translate/translate_tab_helper.h:34: class ...
6 years, 7 months ago (2014-05-20 07:43:07 UTC) #9
nshaik
6 years, 7 months ago (2014-05-20 22:16:56 UTC) #10
nshaik
https://codereview.chromium.org/290573013/diff/40001/chrome/browser/translate/translate_tab_helper.h File chrome/browser/translate/translate_tab_helper.h (right): https://codereview.chromium.org/290573013/diff/40001/chrome/browser/translate/translate_tab_helper.h#newcode34 chrome/browser/translate/translate_tab_helper.h:34: class NavigationController; On 2014/05/20 07:43:07, droger wrote: > Is ...
6 years, 7 months ago (2014-05-20 22:33:52 UTC) #11
droger
The CQ bit was checked by droger@chromium.org
6 years, 7 months ago (2014-05-21 07:35:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/290573013/80001
6 years, 7 months ago (2014-05-21 07:35:57 UTC) #13
droger
Thanks! I've tried checking the commit box, but it failed. You probably need to rebase ...
6 years, 7 months ago (2014-05-21 09:13:24 UTC) #14
nshaik
The CQ bit was checked by naiem.shaik@gmail.com
6 years, 7 months ago (2014-05-21 15:25:45 UTC) #15
nshaik
https://codereview.chromium.org/290573013/diff/80001/components/translate/core/browser/translate_manager.h File components/translate/core/browser/translate_manager.h (right): https://codereview.chromium.org/290573013/diff/80001/components/translate/core/browser/translate_manager.h#newcode92 components/translate/core/browser/translate_manager.h:92: LanguageState& GetLanguageState(); On 2014/05/21 09:13:25, droger wrote: > Can ...
6 years, 7 months ago (2014-05-21 15:26:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/290573013/100001
6 years, 7 months ago (2014-05-21 19:57:49 UTC) #17
nshaik
On 2014/05/21 19:57:49, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
6 years, 7 months ago (2014-05-22 01:03:54 UTC) #18
nshaik
On 2014/05/22 01:03:54, naiem.shaik wrote: > On 2014/05/21 19:57:49, I haz the power (commit-bot) wrote: ...
6 years, 7 months ago (2014-05-22 01:17:53 UTC) #19
nshaik
The CQ bit was checked by naiem.shaik@gmail.com
6 years, 7 months ago (2014-05-22 05:41:22 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/290573013/120001
6 years, 7 months ago (2014-05-22 05:42:00 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 11:45:19 UTC) #22
commit-bot: I haz the power
Change committed as 272217
6 years, 7 months ago (2014-05-22 17:32:13 UTC) #23
tfarina
please spell the test suite name in the CL description correctly in future patches. it ...
6 years, 7 months ago (2014-05-22 17:37:04 UTC) #24
sadrul
Reverted in crrev.com/272264 because it caused redness in asan/lsan bots. The revert CL includes some ...
6 years, 7 months ago (2014-05-22 19:17:23 UTC) #25
nshaik
On 2014/05/22 19:17:23, sadrul wrote: > Reverted in crrev.com/272264 because it caused redness in asan/lsan ...
6 years, 7 months ago (2014-05-22 21:17:09 UTC) #26
nshaik
On 2014/05/22 21:17:09, naiem.shaik wrote: > On 2014/05/22 19:17:23, sadrul wrote: > > Reverted in ...
6 years, 6 months ago (2014-05-30 01:10:22 UTC) #27
blundell
On 2014/05/30 01:10:22, naiem.shaik wrote: > On 2014/05/22 21:17:09, naiem.shaik wrote: > > On 2014/05/22 ...
6 years, 6 months ago (2014-05-30 09:25:38 UTC) #28
droger
On 2014/05/30 01:10:22, naiem.shaik wrote: > On 2014/05/22 21:17:09, naiem.shaik wrote: > > On 2014/05/22 ...
6 years, 6 months ago (2014-06-02 08:51:28 UTC) #29
nshaik
Made TranslateManager as WeakPtr, please review.. Thanks.
6 years, 6 months ago (2014-06-05 06:56:16 UTC) #30
droger
Thanks. LGTM. https://codereview.chromium.org/290573013/diff/150001/components/translate/core/browser/translate_ui_delegate.cc File components/translate/core/browser/translate_ui_delegate.cc (right): https://codereview.chromium.org/290573013/diff/150001/components/translate/core/browser/translate_ui_delegate.cc#newcode167 components/translate/core/browser/translate_ui_delegate.cc:167: if (translate_manager_) { Note: if translate_manager_ is ...
6 years, 6 months ago (2014-06-05 08:36:34 UTC) #31
nshaik
Please take a look.. Thanks https://codereview.chromium.org/290573013/diff/150001/components/translate/core/browser/translate_ui_delegate.cc File components/translate/core/browser/translate_ui_delegate.cc (right): https://codereview.chromium.org/290573013/diff/150001/components/translate/core/browser/translate_ui_delegate.cc#newcode167 components/translate/core/browser/translate_ui_delegate.cc:167: if (translate_manager_) { On ...
6 years, 6 months ago (2014-06-05 18:45:31 UTC) #32
droger
lgtm again
6 years, 6 months ago (2014-06-05 20:55:43 UTC) #33
nshaik
The CQ bit was checked by naiem.shaik@gmail.com
6 years, 6 months ago (2014-06-05 21:47:28 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/290573013/180001
6 years, 6 months ago (2014-06-05 21:48:11 UTC) #35
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-06 02:58:36 UTC) #36
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 03:02:59 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72060)
6 years, 6 months ago (2014-06-06 03:03:00 UTC) #38
nshaik
"+ben@,mad@ for OWNERS"
6 years, 6 months ago (2014-06-06 03:39:40 UTC) #39
blundell
On 2014/06/06 03:39:40, naiem.shaik wrote: > "+ben@,mad@ for OWNERS" Please specify what you're asking them ...
6 years, 6 months ago (2014-06-06 07:31:38 UTC) #40
nshaik
On 2014/06/06 07:31:38, blundell wrote: > On 2014/06/06 03:39:40, naiem.shaik wrote: > > "+ben@,mad@ for ...
6 years, 6 months ago (2014-06-06 16:17:42 UTC) #41
tfarina
On Fri, Jun 6, 2014 at 1:17 PM, <naiem.shaik@gmail.com> wrote: > On 2014/06/06 07:31:38, blundell ...
6 years, 6 months ago (2014-06-06 16:51:36 UTC) #42
droger
This changes are fine to TBR: all the changes outside of translate are either changes ...
6 years, 6 months ago (2014-06-06 20:46:26 UTC) #43
nshaik
Thanks Thiago,David. @Sky, can you please TBR the changes.
6 years, 6 months ago (2014-06-07 05:30:47 UTC) #44
nshaik
On 2014/06/07 05:30:47, naiem.shaik wrote: > Thanks Thiago,David. > > @Sky, can you please TBR ...
6 years, 6 months ago (2014-06-07 17:30:43 UTC) #45
nshaik
The CQ bit was checked by naiem.shaik@gmail.com
6 years, 6 months ago (2014-06-10 01:14:43 UTC) #46
nshaik
The CQ bit was unchecked by naiem.shaik@gmail.com
6 years, 6 months ago (2014-06-10 01:15:05 UTC) #47
dconnelly
lgtm chrome/browser/policy lgtm
6 years, 6 months ago (2014-06-10 07:35:33 UTC) #48
blundell
On 2014/06/07 17:30:43, naiem.shaik wrote: > On 2014/06/07 05:30:47, naiem.shaik wrote: > > Thanks Thiago,David. ...
6 years, 6 months ago (2014-06-10 08:10:58 UTC) #49
nshaik
The CQ bit was checked by naiem.shaik@gmail.com
6 years, 6 months ago (2014-06-10 23:30:36 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/naiem.shaik@gmail.com/290573013/200001
6 years, 6 months ago (2014-06-10 23:32:57 UTC) #51
commit-bot: I haz the power
6 years, 6 months ago (2014-06-11 09:34:32 UTC) #52
Message was sent while issue was closed.
Change committed as 276320

Powered by Google App Engine
This is Rietveld 408576698