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

Issue 291503008: Remove most of chrome/ and content/ usage from TranslateInfoBarDelegate (Closed)

Created:
6 years, 7 months ago by droger
Modified:
6 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Remove most of chrome/ and content/ usage from TranslateInfoBarDelegate The only problematic dependencies left are WebContents (only needed for the GetWebContents() method, which is only used by OptionsMenuModel), and InfoBarService, which is only used to implement GetWebContents(). BUG=371845 TBR=rohitrao Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271205

Patch Set 1 #

Patch Set 2 : use weakptr #

Patch Set 3 : rebase #

Total comments: 1

Patch Set 4 : review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -71 lines) Patch
M chrome/browser/translate/options_menu_model.cc View 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.h View 1 2 3 8 chunks +24 lines, -9 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 2 3 10 chunks +48 lines, -42 lines 2 comments Download
M chrome/browser/translate/translate_tab_helper.cc View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm View 1 2 3 2 chunks +12 lines, -8 lines 0 comments Download
M components/translate/core/browser/translate_manager.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_manager.cc View 1 2 chunks +7 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
droger
6 years, 7 months ago (2014-05-16 12:56:20 UTC) #1
blundell
LG https://codereview.chromium.org/291503008/diff/10007/chrome/browser/translate/translate_infobar_delegate.h File chrome/browser/translate/translate_infobar_delegate.h (right): https://codereview.chromium.org/291503008/diff/10007/chrome/browser/translate/translate_infobar_delegate.h#newcode57 chrome/browser/translate/translate_infobar_delegate.h:57: TranslateManager* translate_manager, I think it would be clearer ...
6 years, 7 months ago (2014-05-16 14:44:33 UTC) #2
droger
Thanks, please take a look.
6 years, 7 months ago (2014-05-16 15:09:38 UTC) #3
blundell
LGTM https://codereview.chromium.org/291503008/diff/40001/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/291503008/diff/40001/chrome/browser/translate/translate_infobar_delegate.cc#newcode329 chrome/browser/translate/translate_infobar_delegate.cc:329: translate_manager.get(), hmm, is it ok that this guy ...
6 years, 7 months ago (2014-05-16 15:11:02 UTC) #4
droger
TBR= rohitrao as owner of chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm https://codereview.chromium.org/291503008/diff/40001/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/291503008/diff/40001/chrome/browser/translate/translate_infobar_delegate.cc#newcode329 chrome/browser/translate/translate_infobar_delegate.cc:329: translate_manager.get(), On 2014/05/16 ...
6 years, 7 months ago (2014-05-16 15:14:11 UTC) #5
droger
The CQ bit was checked by droger@chromium.org
6 years, 7 months ago (2014-05-16 15:14:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/291503008/40001
6 years, 7 months ago (2014-05-16 15:15:00 UTC) #7
rohitrao (ping after 24h)
cocoa/ code LGTM
6 years, 7 months ago (2014-05-16 15:45:20 UTC) #8
blundell
Hi Rohit!
6 years, 7 months ago (2014-05-16 15:45:43 UTC) #9
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-16 17:12:29 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-16 18:12:04 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/27900)
6 years, 7 months ago (2014-05-16 18:12:04 UTC) #12
droger
The CQ bit was unchecked by droger@chromium.org
6 years, 7 months ago (2014-05-16 22:04:27 UTC) #13
droger
The CQ bit was checked by droger@chromium.org
6 years, 7 months ago (2014-05-16 22:04:27 UTC) #14
droger
The CQ bit was unchecked by droger@chromium.org
6 years, 7 months ago (2014-05-16 22:45:39 UTC) #15
droger
The CQ bit was checked by droger@chromium.org
6 years, 7 months ago (2014-05-16 22:45:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/291503008/40001
6 years, 7 months ago (2014-05-16 23:32:16 UTC) #17
commit-bot: I haz the power
6 years, 7 months ago (2014-05-17 15:34:26 UTC) #18
Message was sent while issue was closed.
Change committed as 271205

Powered by Google App Engine
This is Rietveld 408576698