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

Issue 2890843003: Simplify TranslateRanker API. (Closed)

Created:
3 years, 7 months ago by hamelphi
Modified:
3 years, 7 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify TranslateRanker API. ShoudlOfferTranslate now only requires a TranslateEventProto. This simplifies the API, and ensures consistency between logging and inference. Also, removing unused includes and cleaning up unittests. BUG=723739 Review-Url: https://codereview.chromium.org/2890843003 Cr-Commit-Position: refs/heads/master@{#473918} Committed: https://chromium.googlesource.com/chromium/src/+/e3fe5e855cb0ecae33620fbfbb651ec3e0ed0d96

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add comment about GetRankerForTest. #

Patch Set 3 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -206 lines) Patch
M components/translate/core/browser/mock_translate_ranker.h View 2 chunks +0 lines, -5 lines 0 comments Download
M components/translate/core/browser/mock_translate_ranker.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M components/translate/core/browser/translate_manager.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/translate/core/browser/translate_ranker.h View 2 chunks +1 line, -7 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl.h View 1 2 4 chunks +3 lines, -11 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl.cc View 1 2 6 chunks +32 lines, -38 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl_unittest.cc View 1 2 14 chunks +98 lines, -140 lines 0 comments Download

Messages

Total messages: 19 (10 generated)
hamelphi
3 years, 7 months ago (2017-05-17 17:51:08 UTC) #2
hamelphi
On 2017/05/17 17:51:08, hamelphi wrote: Ping! Can I haz review? I hope to get this ...
3 years, 7 months ago (2017-05-18 20:51:12 UTC) #3
Roger McFarlane (Chromium)
lgtm https://codereview.chromium.org/2890843003/diff/1/components/translate/core/browser/translate_ranker_impl_unittest.cc File components/translate/core/browser/translate_ranker_impl_unittest.cc (right): https://codereview.chromium.org/2890843003/diff/1/components/translate/core/browser/translate_ranker_impl_unittest.cc#newcode47 components/translate/core/browser/translate_ranker_impl_unittest.cc:47: // Returns a TranslateRankerImpl object with |threshold| for ...
3 years, 7 months ago (2017-05-18 21:01:32 UTC) #4
hamelphi
https://codereview.chromium.org/2890843003/diff/1/components/translate/core/browser/translate_ranker_impl_unittest.cc File components/translate/core/browser/translate_ranker_impl_unittest.cc (right): https://codereview.chromium.org/2890843003/diff/1/components/translate/core/browser/translate_ranker_impl_unittest.cc#newcode47 components/translate/core/browser/translate_ranker_impl_unittest.cc:47: // Returns a TranslateRankerImpl object with |threshold| for testing. ...
3 years, 7 months ago (2017-05-18 21:25:13 UTC) #5
groby-ooo-7-16
lgtm
3 years, 7 months ago (2017-05-23 14:06:31 UTC) #6
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/2890843003/20001
3 years, 7 months ago (2017-05-23 14:09:46 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/216846) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 7 months ago (2017-05-23 14:11:51 UTC) #11
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/2890843003/40001
3 years, 7 months ago (2017-05-23 14:51:31 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 15:56:20 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e3fe5e855cb0ecae33620fbfbb65...

Powered by Google App Engine
This is Rietveld 408576698