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

Issue 325483003: Remove unused Views Translate InfoBar code. (Closed)

Created:
6 years, 6 months ago by msw
Modified:
6 years, 6 months ago
CC:
chromium-reviews, tfarina, hajimehoshi, Peter Kasting, Elliot Glaysher, MAD, Takashi Toyoshima, Joao da Silva
Visibility:
Public.

Description

Remove unused Views Translate InfoBar code. The new translate UX uses bubbles instead of infobars. Views uses the new UX by default, Mac will soon too. (IDRs x-plat API should be removed after Mac switches) Remove code unused since r248162 (4 months ago). Stub out ChromeTranslateClient::CreateInfoBar for Views. This should simplify Elliot's WIP MenuButton CL: https://codereview.chromium.org/298813002 (these applied TextButtonBorders to MenuButtons instances) BUG=276181, 288554, 241691, 383235, 155363 TEST=No Translate behavior changes; no complaints. R=sky@chromium.org,pkasting@chromium.org,toyoshim@chromium.org TBR=hajimehoshi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276567

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove test-only infobar toggle; no-op tests for incompatible UX. #

Total comments: 4

Patch Set 3 : Update comments, add early return for PolicyTest.DISABLED_TranslateEnabled. #

Total comments: 1

Patch Set 4 : Sync and rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -1025 lines) Patch
M chrome/browser/autofill/autofill_interactive_uitest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 1 2 3 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/translate/chrome_translate_client.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/translate/translate_browsertest.cc View 1 2 7 chunks +12 lines, -28 lines 0 comments Download
M chrome/browser/translate/translate_manager_render_view_host_unittest.cc View 1 2 3 33 chunks +115 lines, -14 lines 0 comments Download
M chrome/browser/translate/translate_service.h View 1 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/translate/translate_service.cc View 1 2 chunks +3 lines, -10 lines 0 comments Download
D chrome/browser/ui/views/infobars/after_translate_infobar.h View 1 chunk +0 lines, -75 lines 0 comments Download
D chrome/browser/ui/views/infobars/after_translate_infobar.cc View 1 chunk +0 lines, -202 lines 0 comments Download
D chrome/browser/ui/views/infobars/before_translate_infobar.h View 1 chunk +0 lines, -64 lines 0 comments Download
D chrome/browser/ui/views/infobars/before_translate_infobar.cc View 1 chunk +0 lines, -193 lines 0 comments Download
D chrome/browser/ui/views/infobars/translate_infobar_base.h View 1 chunk +0 lines, -59 lines 0 comments Download
D chrome/browser/ui/views/infobars/translate_infobar_base.cc View 1 chunk +0 lines, -132 lines 0 comments Download
D chrome/browser/ui/views/infobars/translate_language_menu_model.h View 1 chunk +0 lines, -54 lines 0 comments Download
D chrome/browser/ui/views/infobars/translate_language_menu_model.cc View 1 chunk +0 lines, -64 lines 0 comments Download
D chrome/browser/ui/views/infobars/translate_message_infobar.h View 1 chunk +0 lines, -36 lines 0 comments Download
D chrome/browser/ui/views/infobars/translate_message_infobar.cc View 1 chunk +0 lines, -72 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 2 chunks +0 lines, -10 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
msw
Hey Scott, please take a look; thanks!
6 years, 6 months ago (2014-06-06 23:20:31 UTC) #1
tfarina
Peter is already in the CC list, I was going to copy him. ;) +David, ...
6 years, 6 months ago (2014-06-06 23:22:14 UTC) #2
droger
On 2014/06/06 23:22:14, tfarina wrote: > +David, in case he cares. Yes, I care, thanks ...
6 years, 6 months ago (2014-06-07 06:55:42 UTC) #3
Peter Kasting
My only concern is that, last time I looked at this, it was still possible ...
6 years, 6 months ago (2014-06-09 00:27:22 UTC) #4
msw
On 2014/06/09 00:27:22, Peter Kasting wrote: > My only concern is that, last time I ...
6 years, 6 months ago (2014-06-09 16:27:32 UTC) #5
msw
Scott, please take a look as you have time. CC'ing a couple others OWNERS that ...
6 years, 6 months ago (2014-06-09 22:48:41 UTC) #6
sky
LGTM - but wait for the guys in Japan to sign off on the removal.
6 years, 6 months ago (2014-06-10 13:29:45 UTC) #7
msw
toyoshim@, can you take a look, or should we wait for hajimehoshi@ to return?
6 years, 6 months ago (2014-06-10 17:00:40 UTC) #8
Takashi Toyoshima
https://codereview.chromium.org/325483003/diff/60001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/325483003/diff/60001/chrome/browser/policy/policy_browsertest.cc#newcode1910 chrome/browser/policy/policy_browsertest.cc:1910: // Verify that the translate infobar showed up. This ...
6 years, 6 months ago (2014-06-11 04:54:33 UTC) #9
msw
Please take another look, thanks. https://codereview.chromium.org/325483003/diff/60001/chrome/browser/policy/policy_browsertest.cc File chrome/browser/policy/policy_browsertest.cc (right): https://codereview.chromium.org/325483003/diff/60001/chrome/browser/policy/policy_browsertest.cc#newcode1910 chrome/browser/policy/policy_browsertest.cc:1910: // Verify that the ...
6 years, 6 months ago (2014-06-11 07:31:20 UTC) #10
Takashi Toyoshima
lgtm https://codereview.chromium.org/325483003/diff/80001/chrome/browser/translate/translate_manager_render_view_host_unittest.cc File chrome/browser/translate/translate_manager_render_view_host_unittest.cc (right): https://codereview.chromium.org/325483003/diff/80001/chrome/browser/translate/translate_manager_render_view_host_unittest.cc#newcode404 chrome/browser/translate/translate_manager_render_view_host_unittest.cc:404: // See BubbleNormalTranslate for corresponding bubble UX testing. ...
6 years, 6 months ago (2014-06-11 09:14:32 UTC) #11
msw
The CQ bit was checked by msw@chromium.org
6 years, 6 months ago (2014-06-11 09:32:34 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/325483003/80001
6 years, 6 months ago (2014-06-11 09:35:37 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 13:29:08 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 13:33:17 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg/builds/194391) chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/72986)
6 years, 6 months ago (2014-06-11 13:33:18 UTC) #16
msw
The CQ bit was checked by msw@chromium.org
6 years, 6 months ago (2014-06-11 16:56:39 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/325483003/100001
6 years, 6 months ago (2014-06-11 17:00:17 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:24:27 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:31:09 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19633)
6 years, 6 months ago (2014-06-11 21:31:10 UTC) #21
msw
The CQ bit was checked by msw@chromium.org
6 years, 6 months ago (2014-06-11 21:33:15 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/325483003/100001
6 years, 6 months ago (2014-06-11 21:34:24 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 21:42:41 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 21:54:16 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/26186) win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/19684)
6 years, 6 months ago (2014-06-11 21:54:17 UTC) #26
msw
The CQ bit was checked by msw@chromium.org
6 years, 6 months ago (2014-06-12 03:32:54 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/msw@chromium.org/325483003/100001
6 years, 6 months ago (2014-06-12 03:36:34 UTC) #28
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 07:42:27 UTC) #29
Message was sent while issue was closed.
Change committed as 276567

Powered by Google App Engine
This is Rietveld 408576698