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

Issue 2913573002: Updates language model on iOS. (Closed)

Created:
3 years, 6 months ago by ramyasharma
Modified:
3 years, 6 months ago
CC:
chromium-reviews, marq+watch_chromium.org, ios-reviews+chrome_chromium.org, noyau+watch_chromium.org, ios-reviews_chromium.org, pkl (ping after 24h if needed), PL
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Updates language model on iOS This cl updates language model on Bling. And clears language model history on clear browsing data. This CL does not update language model from ios/web_view/internal/translate/web_view_translate_client. Mode details here: https://docs.google.com/document/d/17metf0LUD_p38DhPx7P_lyH9bVvRfuXlVvy91ESZT9M/edit BUG=715447 Review-Url: https://codereview.chromium.org/2913573002 Cr-Commit-Position: refs/heads/master@{#477548} Committed: https://chromium.googlesource.com/chromium/src/+/8709f78a5a70fd9db4414ca6c0fe281d668f31e5

Patch Set 1 #

Total comments: 14

Patch Set 2 #

Total comments: 3

Patch Set 3 #

Total comments: 4

Patch Set 4 #

Total comments: 4

Patch Set 5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -5 lines) Patch
M components/translate/ios/browser/ios_translate_driver.h View 3 chunks +6 lines, -1 line 0 comments Download
M components/translate/ios/browser/ios_translate_driver.mm View 3 chunks +9 lines, -1 line 0 comments Download
M components/translate/ios/browser/language_detection_controller.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M components/translate/ios/browser/language_detection_controller.mm View 1 3 chunks +13 lines, -1 line 0 comments Download
M components/translate/ios/browser/language_detection_controller_unittest.mm View 2 chunks +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/browsing_data/BUILD.gn View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/browsing_data/ios_chrome_browsing_data_remover.mm View 1 3 chunks +8 lines, -0 lines 0 comments Download
M ios/chrome/browser/prefs/browser_prefs.mm View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/translate/BUILD.gn View 1 2 3 4 chunks +6 lines, -0 lines 0 comments Download
M ios/chrome/browser/translate/chrome_ios_translate_client.mm View 1 2 chunks +5 lines, -1 line 0 comments Download
A ios/chrome/browser/translate/language_model_factory.h View 1 1 chunk +41 lines, -0 lines 0 comments Download
A ios/chrome/browser/translate/language_model_factory.cc View 1 1 chunk +37 lines, -0 lines 0 comments Download
A ios/chrome/browser/translate/language_model_factory_unittest.cc View 1 2 1 chunk +42 lines, -0 lines 0 comments Download
M ios/web_view/internal/translate/web_view_translate_client.mm View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 58 (42 generated)
ramyasharma
3 years, 6 months ago (2017-05-31 08:00:10 UTC) #7
martis
lgtm https://codereview.chromium.org/2913573002/diff/80001/components/translate/ios/browser/language_detection_controller.h File components/translate/ios/browser/language_detection_controller.h (right): https://codereview.chromium.org/2913573002/diff/80001/components/translate/ios/browser/language_detection_controller.h#newcode37 components/translate/ios/browser/language_detection_controller.h:37: struct DetectionDetails { Did you investigate reusing LanguageDetectionDetails ...
3 years, 6 months ago (2017-06-01 06:49:21 UTC) #9
ramyasharma
Thanks Michael. Adding Jan for review. https://codereview.chromium.org/2913573002/diff/80001/components/translate/ios/browser/language_detection_controller.h File components/translate/ios/browser/language_detection_controller.h (right): https://codereview.chromium.org/2913573002/diff/80001/components/translate/ios/browser/language_detection_controller.h#newcode37 components/translate/ios/browser/language_detection_controller.h:37: struct DetectionDetails { ...
3 years, 6 months ago (2017-06-02 07:20:24 UTC) #17
jkrcal
lgtm, thanks! https://codereview.chromium.org/2913573002/diff/120001/ios/web_view/internal/translate/web_view_translate_client.mm File ios/web_view/internal/translate/web_view_translate_client.mm (right): https://codereview.chromium.org/2913573002/diff/120001/ios/web_view/internal/translate/web_view_translate_client.mm#newcode48 ios/web_view/internal/translate/web_view_translate_client.mm:48: nil) {} nit: /*language_model=*/nil Why don't you ...
3 years, 6 months ago (2017-06-02 08:35:09 UTC) #18
jkrcal
https://codereview.chromium.org/2913573002/diff/120001/ios/web_view/internal/translate/web_view_translate_client.mm File ios/web_view/internal/translate/web_view_translate_client.mm (right): https://codereview.chromium.org/2913573002/diff/120001/ios/web_view/internal/translate/web_view_translate_client.mm#newcode48 ios/web_view/internal/translate/web_view_translate_client.mm:48: nil) {} On 2017/06/02 08:35:09, jkrcal wrote: > nit: ...
3 years, 6 months ago (2017-06-02 08:36:40 UTC) #19
marq (ping after 24h)
+peterlaurens@ : FYI.
3 years, 6 months ago (2017-06-02 08:41:13 UTC) #21
ramyasharma
Adding owners to the review. droger@chromium.org: Please review changes in ios/ rohitrao@chromium.org: Please review changes ...
3 years, 6 months ago (2017-06-05 05:07:26 UTC) #24
pkl (ping after 24h if needed)
+michaeldo for ios/web_view
3 years, 6 months ago (2017-06-05 13:33:12 UTC) #30
rohitrao (ping after 24h)
ios/web_view changes look fine, but I'll let michaeldo sign off on them. I'm not sure ...
3 years, 6 months ago (2017-06-05 13:37:44 UTC) #31
michaeldo
ios/web_view lgtm with bug number added to TODO If I understand this change correctly, this ...
3 years, 6 months ago (2017-06-05 15:03:43 UTC) #32
martis
On 2017/06/02 07:20:24, ramyasharma wrote: > https://codereview.chromium.org/2913573002/diff/80001/components/translate/ios/browser/language_detection_controller.mm#newcode55 > components/translate/ios/browser/language_detection_controller.mm:55: > LanguageDetectionController::DetectionDetails::DetectionDetails() > On 2017/06/01 06:49:21, ...
3 years, 6 months ago (2017-06-06 01:44:11 UTC) #33
ramyasharma
Thanks everyone. droger@ PTAL for owners approval in components/ and ios/ https://codereview.chromium.org/2913573002/diff/140001/ios/web_view/internal/translate/web_view_translate_client.mm File ios/web_view/internal/translate/web_view_translate_client.mm (right): ...
3 years, 6 months ago (2017-06-06 04:22:27 UTC) #43
droger
lgtm with comments. https://codereview.chromium.org/2913573002/diff/200001/components/translate/ios/browser/BUILD.gn File components/translate/ios/browser/BUILD.gn (right): https://codereview.chromium.org/2913573002/diff/200001/components/translate/ios/browser/BUILD.gn#newcode62 components/translate/ios/browser/BUILD.gn:62: "//ios/chrome/browser/browser_state", Components cannot depend on chrome ...
3 years, 6 months ago (2017-06-06 09:06:14 UTC) #46
ramyasharma
Thanks David. https://codereview.chromium.org/2913573002/diff/200001/components/translate/ios/browser/BUILD.gn File components/translate/ios/browser/BUILD.gn (right): https://codereview.chromium.org/2913573002/diff/200001/components/translate/ios/browser/BUILD.gn#newcode62 components/translate/ios/browser/BUILD.gn:62: "//ios/chrome/browser/browser_state", On 2017/06/06 09:06:13, droger wrote: > ...
3 years, 6 months ago (2017-06-07 01:58:15 UTC) #49
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/2913573002/220001
3 years, 6 months ago (2017-06-07 04:21:26 UTC) #54
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 04:26:39 UTC) #58
Message was sent while issue was closed.
Committed patchset #5 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/8709f78a5a70fd9db4414ca6c0fe...

Powered by Google App Engine
This is Rietveld 408576698