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

Issue 292513002: Remove dependency of TranslateInfobarDelegate on chrome/ and content/ (Closed)

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

Description

Remove dependency of TranslateInfobarDelegate on chrome/ and content/ BUG=371845 TBR=rohitrao Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271685

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove driver method + cleanup #

Patch Set 3 : cleanup #

Patch Set 4 : cleanup #

Patch Set 5 : put the driver method back #

Total comments: 4

Patch Set 6 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -65 lines) Patch
M chrome/browser/translate/options_menu_model.cc View 1 2 3 4 5 2 chunks +16 lines, -14 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.h View 1 2 3 4 5 6 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 2 3 4 5 8 chunks +15 lines, -16 lines 0 comments Download
M chrome/browser/translate/translate_tab_helper.cc View 1 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm View 1 3 chunks +2 lines, -7 lines 0 comments Download
M chrome/common/url_constants.h View 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 1 chunk +0 lines, -7 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.h View 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/translate/content/browser/content_translate_driver.cc View 2 3 4 2 chunks +11 lines, -0 lines 0 comments Download
M components/translate/core/browser/language_state_unittest.cc View 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/translate/core/browser/translate_driver.h View 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
droger
6 years, 7 months ago (2014-05-19 12:16:09 UTC) #1
blundell
https://codereview.chromium.org/292513002/diff/1/chrome/browser/translate/options_menu_model.cc File chrome/browser/translate/options_menu_model.cc (left): https://codereview.chromium.org/292513002/diff/1/chrome/browser/translate/options_menu_model.cc#oldcode124 chrome/browser/translate/options_menu_model.cc:124: WebContents* web_contents = translate_infobar_delegate_->GetWebContents(); It seems like it would ...
6 years, 7 months ago (2014-05-19 12:38:42 UTC) #2
droger
On 2014/05/19 12:38:42, blundell wrote: > https://codereview.chromium.org/292513002/diff/1/chrome/browser/translate/options_menu_model.cc > File chrome/browser/translate/options_menu_model.cc (left): > > https://codereview.chromium.org/292513002/diff/1/chrome/browser/translate/options_menu_model.cc#oldcode124 > ...
6 years, 7 months ago (2014-05-19 12:51:03 UTC) #3
droger
As per offline discussion, I removed the driver method. Please take a look.
6 years, 7 months ago (2014-05-19 14:01:32 UTC) #4
droger
Sorry about the confusion around browser commands. I checked that the commands are only usedby ...
6 years, 7 months ago (2014-05-19 15:49:51 UTC) #5
blundell
LGTM https://codereview.chromium.org/292513002/diff/60001/chrome/browser/translate/options_menu_model.cc File chrome/browser/translate/options_menu_model.cc (left): https://codereview.chromium.org/292513002/diff/60001/chrome/browser/translate/options_menu_model.cc#oldcode25 chrome/browser/translate/options_menu_model.cc:25: // |translate_delegate| must already be owned. Does it ...
6 years, 7 months ago (2014-05-20 11:56:56 UTC) #6
droger
https://codereview.chromium.org/292513002/diff/60001/chrome/browser/translate/options_menu_model.cc File chrome/browser/translate/options_menu_model.cc (left): https://codereview.chromium.org/292513002/diff/60001/chrome/browser/translate/options_menu_model.cc#oldcode25 chrome/browser/translate/options_menu_model.cc:25: // |translate_delegate| must already be owned. On 2014/05/20 11:56:56, ...
6 years, 7 months ago (2014-05-20 12:30:23 UTC) #7
droger
TBR=rohitrao for chrome/browser/ui/cocoa/infobars/translate_infobar_unittest.mm
6 years, 7 months ago (2014-05-20 12:31:38 UTC) #8
droger
The CQ bit was checked by droger@chromium.org
6 years, 7 months ago (2014-05-20 12:31:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/292513002/80001
6 years, 7 months ago (2014-05-20 12:32:24 UTC) #10
rohitrao (ping after 24h)
cocoa/ changes LGTM
6 years, 7 months ago (2014-05-20 12:35:30 UTC) #11
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 17:26:33 UTC) #12
Message was sent while issue was closed.
Change committed as 271685

Powered by Google App Engine
This is Rietveld 408576698