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

Issue 2899893004: Code cleanup for Translate Compact Infobar. (Closed)

Created:
3 years, 7 months ago by Leo
Modified:
3 years, 7 months ago
Reviewers:
mdjones, Marti Wong
CC:
chromium-reviews, agrieve+watch_chromium.org, dfalcantara+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Code cleanup for Translate Compact Infobar. 1. Move shouldAutoNeverTranslate checks to native code in order to simplify front-end logic. 2. Remove declined logging on Java side, which is duplicate in native. 3. Remove unnecessary "Cancel" action . BUG=703887 Review-Url: https://codereview.chromium.org/2899893004 Cr-Commit-Position: refs/heads/master@{#474178} Committed: https://chromium.googlesource.com/chromium/src/+/ae952008457a2f703d91e24b301efb59718fce87

Patch Set 1 #

Patch Set 2 : fix #

Total comments: 4

Patch Set 3 : fix #

Patch Set 4 : Merge branch 'master' into code-cleanup-5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -51 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/infobar/TranslateCompactInfoBar.java View 1 2 11 chunks +33 lines, -43 lines 0 comments Download
M chrome/browser/ui/android/infobars/translate_compact_infobar.h View 1 2 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/ui/android/infobars/translate_compact_infobar.cc View 1 2 3 5 chunks +20 lines, -5 lines 0 comments Download

Messages

Total messages: 16 (10 generated)
Leo
I did some code clean up and fix some logging bugs. PTAL
3 years, 7 months ago (2017-05-23 07:52:02 UTC) #2
Marti Wong
thx Leo~! https://codereview.chromium.org/2899893004/diff/20001/chrome/browser/ui/android/infobars/translate_compact_infobar.cc File chrome/browser/ui/android/infobars/translate_compact_infobar.cc (right): https://codereview.chromium.org/2899893004/diff/20001/chrome/browser/ui/android/infobars/translate_compact_infobar.cc#newcode152 chrome/browser/ui/android/infobars/translate_compact_infobar.cc:152: // Don't trigger if it's off the ...
3 years, 7 months ago (2017-05-23 08:23:32 UTC) #3
Leo
Thanks for the review, Marti. https://codereview.chromium.org/2899893004/diff/20001/chrome/browser/ui/android/infobars/translate_compact_infobar.cc File chrome/browser/ui/android/infobars/translate_compact_infobar.cc (right): https://codereview.chromium.org/2899893004/diff/20001/chrome/browser/ui/android/infobars/translate_compact_infobar.cc#newcode152 chrome/browser/ui/android/infobars/translate_compact_infobar.cc:152: // Don't trigger if ...
3 years, 7 months ago (2017-05-23 14:33:01 UTC) #8
mdjones
lgtm % fix commit message: "1. Text..." "2. More text..." One space between description/body and ...
3 years, 7 months ago (2017-05-24 00:07:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2899893004/60001
3 years, 7 months ago (2017-05-24 04:14:25 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-24 05:55:29 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/ae952008457a2f703d91e24b301e...

Powered by Google App Engine
This is Rietveld 408576698