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

Issue 2910713002: [TTS] Fix expanding selection at end of some lines (Closed)

Created:
3 years, 7 months ago by Donn Denman
Modified:
3 years, 6 months ago
Reviewers:
Theresa
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[TTS] Fix expanding selection at end of some lines Fixes a bug where the resolved term isn't always selected in the text. The case fixed is due to the selection including a trailing space when at the end of a line. It's unclear why the trailing space is included in the selection. We simply trim the trailing space. BUG=726767 Review-Url: https://codereview.chromium.org/2910713002 Cr-Commit-Position: refs/heads/master@{#476506} Committed: https://chromium.googlesource.com/chromium/src/+/08060b17bf13ffc5bd17f6d863727a2cfa834119

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added a trim() to the original selection too. #

Patch Set 3 : Rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java View 1 2 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
Donn Denman
Theresa, PTAL at this simple fix whenever convenient.
3 years, 6 months ago (2017-06-01 22:51:31 UTC) #6
Theresa
https://codereview.chromium.org/2910713002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java (right): https://codereview.chromium.org/2910713002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java#newcode729 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java:729: if (currentSelection != null) currentSelection = currentSelection.trim(); Will the ...
3 years, 6 months ago (2017-06-01 23:06:20 UTC) #7
Donn Denman
PTAL, and thanks for the review! https://codereview.chromium.org/2910713002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java File chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java (right): https://codereview.chromium.org/2910713002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java#newcode729 chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java:729: if (currentSelection != ...
3 years, 6 months ago (2017-06-01 23:20:07 UTC) #8
Theresa
lgtm
3 years, 6 months ago (2017-06-01 23:24:38 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/2910713002/40001
3 years, 6 months ago (2017-06-01 23:30:45 UTC) #11
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 01:02:44 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/08060b17bf13ffc5bd17f6d86372...

Powered by Google App Engine
This is Rietveld 408576698