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

Issue 17368005: [Translate] Do not show TRANSLATING and AFTER_TRANSLATE when on a translate session (Closed)

Created:
7 years, 6 months ago by Miguel Garcia
Modified:
7 years, 5 months ago
CC:
chromium-reviews, kenjibaheux
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Translate] Do not show TRANSLATING and AFTER_TRANSLATE when on a translate session BUG=244790 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207846

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -9 lines) Patch
M chrome/browser/translate/translate_infobar_delegate.h View 1 chunk +0 lines, -1 line 1 comment Download
M chrome/browser/translate/translate_infobar_delegate.cc View 1 2 2 chunks +10 lines, -8 lines 1 comment Download

Messages

Total messages: 6 (0 generated)
Takashi Toyoshima
Thanks! lgtm with one small nit. https://codereview.chromium.org/17368005/diff/1/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/17368005/diff/1/chrome/browser/translate/translate_infobar_delegate.cc#newcode78 chrome/browser/translate/translate_infobar_delegate.cc:78: if (infobar_type == ...
7 years, 6 months ago (2013-06-21 12:19:53 UTC) #1
Miguel Garcia
Thanks for the quick review! https://codereview.chromium.org/17368005/diff/1/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://codereview.chromium.org/17368005/diff/1/chrome/browser/translate/translate_infobar_delegate.cc#newcode78 chrome/browser/translate/translate_infobar_delegate.cc:78: if (infobar_type == TranslateInfoBarDelegate::AFTER_TRANSLATE ...
7 years, 6 months ago (2013-06-21 13:24:59 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miguelg@chromium.org/17368005/9003
7 years, 6 months ago (2013-06-21 13:28:48 UTC) #3
commit-bot: I haz the power
Change committed as 207846
7 years, 6 months ago (2013-06-21 16:10:20 UTC) #4
Peter Kasting
https://chromiumcodereview.appspot.com/17368005/diff/9003/chrome/browser/translate/translate_infobar_delegate.cc File chrome/browser/translate/translate_infobar_delegate.cc (right): https://chromiumcodereview.appspot.com/17368005/diff/9003/chrome/browser/translate/translate_infobar_delegate.cc#newcode84 chrome/browser/translate/translate_infobar_delegate.cc:84: return; (1) What about the old delegate? Don't we ...
7 years, 6 months ago (2013-06-21 17:23:59 UTC) #5
Miguel Garcia
7 years, 5 months ago (2013-07-17 14:37:11 UTC) #6
Message was sent while issue was closed.
I sent out https://codereview.chromium.org/19596002/ to fix your comments.

On 2013/06/21 17:23:59, Peter Kasting wrote:
>
https://chromiumcodereview.appspot.com/17368005/diff/9003/chrome/browser/tran...
> File chrome/browser/translate/translate_infobar_delegate.cc (right):
> 
>
https://chromiumcodereview.appspot.com/17368005/diff/9003/chrome/browser/tran...
> chrome/browser/translate/translate_infobar_delegate.cc:84: return;
> (1) What about the old delegate?  Don't we need to remove it?

We don't have an old delegate here since the BEFORE_TRANSLATE infobar is not
shown after a navigation. I added a DCHECK on the patch.

> 
> (2) If we're going to return like this, why not do it right after the initial
> DCHECKs, instead of after we've created the new delegate?

Great idea
> 
>
https://chromiumcodereview.appspot.com/17368005/diff/9003/chrome/browser/tran...
> File chrome/browser/translate/translate_infobar_delegate.h (right):
> 
>
https://chromiumcodereview.appspot.com/17368005/diff/9003/chrome/browser/tran...
> chrome/browser/translate/translate_infobar_delegate.h:61: // translate infobar
> already present.
> Nit: Consider updating this comment to describe your new behavior.

Great idea

Powered by Google App Engine
This is Rietveld 408576698