[SmartText selection] Implement TextClassifier getter and setter
Pass the text classifier object by the chain
AwContents -> ContentViewCore -> SelectionPopupController ->
SmartSelectionClient -> SmartSelectionProvider.
The classifier is supposed to be owned by the implementation of
SmartSelectionProvider.
Move the classifier object to the new popup contents in case of
popup creation.
BUG=710503
Review-Url: https://codereview.chromium.org/2882583004
Cr-Commit-Position: refs/heads/master@{#472643}
Committed: https://chromium.googlesource.com/chromium/src/+/0d7d2b26b79f0d75280911e80ccc22c77fe80cb5
Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/177640)
3 years, 7 months ago
(2017-05-13 04:08:27 UTC)
#7
https://codereview.chromium.org/2882583004/diff/1/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java File content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java (right): https://codereview.chromium.org/2882583004/diff/1/content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java#newcode1110 content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java:1110: mSelectionClient.setTextClassifier(textClassifier); null checks, as found out by tests: 05-13 ...
3 years, 7 months ago
(2017-05-15 16:50:21 UTC)
#8
https://codereview.chromium.org/2882583004/diff/1/content/public/android/java...
File
content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
(right):
https://codereview.chromium.org/2882583004/diff/1/content/public/android/java...
content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java:1110:
mSelectionClient.setTextClassifier(textClassifier);
null checks, as found out by tests:
05-13 04:05:27.239 29770 29770 E AndroidRuntime: java.lang.NullPointerException
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
org.chromium.content.browser.SelectionPopupController.getCustomTextClassifier(SelectionPopupController.java:1129)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
org.chromium.content.browser.ContentViewCore.getCustomTextClassifier(ContentViewCore.java:2369)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:1044)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
org.chromium.android_webview.AwContents.receivePopupContents(AwContents.java:1146)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
org.chromium.android_webview.AwContents.supplyContentsForPopup(AwContents.java:1115)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
org.chromium.android_webview.test.AwTestBase$27.run(AwTestBase.java:741)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1719)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
android.os.Handler.handleCallback(Handler.java:733)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
android.os.Handler.dispatchMessage(Handler.java:95)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
android.os.Looper.loop(Looper.java:136)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
android.app.ActivityThread.main(ActivityThread.java:5001)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
java.lang.reflect.Method.invokeNative(Native Method)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
java.lang.reflect.Method.invoke(Method.java:515)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
dalvik.system.NativeStart.main(Native Method)
Tima Vaisburd
The CQ bit was checked by timav@chromium.org to run a CQ dry run
3 years, 7 months ago
(2017-05-15 23:17:04 UTC)
#9
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/294403)
3 years, 7 months ago
(2017-05-16 01:46:04 UTC)
#12
3 years, 7 months ago
(2017-05-16 08:42:00 UTC)
#17
https://codereview.chromium.org/2882583004/diff/1/content/public/android/java...
File
content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java
(right):
https://codereview.chromium.org/2882583004/diff/1/content/public/android/java...
content/public/android/java/src/org/chromium/content/browser/SelectionPopupController.java:1110:
mSelectionClient.setTextClassifier(textClassifier);
On 2017/05/15 16:50:21, boliu wrote:
> null checks, as found out by tests:
>
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime:
java.lang.NullPointerException
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
>
org.chromium.content.browser.SelectionPopupController.getCustomTextClassifier(SelectionPopupController.java:1129)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
>
org.chromium.content.browser.ContentViewCore.getCustomTextClassifier(ContentViewCore.java:2369)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> org.chromium.android_webview.AwContents.setNewAwContents(AwContents.java:1044)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
>
org.chromium.android_webview.AwContents.receivePopupContents(AwContents.java:1146)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
>
org.chromium.android_webview.AwContents.supplyContentsForPopup(AwContents.java:1115)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> org.chromium.android_webview.test.AwTestBase$27.run(AwTestBase.java:741)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> android.app.Instrumentation$SyncRunnable.run(Instrumentation.java:1719)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> android.os.Handler.handleCallback(Handler.java:733)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> android.os.Handler.dispatchMessage(Handler.java:95)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> android.os.Looper.loop(Looper.java:136)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> android.app.ActivityThread.main(ActivityThread.java:5001)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> java.lang.reflect.Method.invokeNative(Native Method)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> java.lang.reflect.Method.invoke(Method.java:515)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
>
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
> 05-13 04:05:27.239 29770 29770 E AndroidRuntime: at
> dalvik.system.NativeStart.main(Native Method)
The try bots are green at last.
boliu
lgtm
3 years, 7 months ago
(2017-05-16 14:17:22 UTC)
#18
lgtm
Tima Vaisburd
The CQ bit was checked by timav@chromium.org
3 years, 7 months ago
(2017-05-17 19:18:36 UTC)
#19
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/440140)
3 years, 7 months ago
(2017-05-17 19:53:21 UTC)
#23
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/440550)
3 years, 7 months ago
(2017-05-18 00:28:48 UTC)
#30
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1495072117465160, "parent_rev": "f864061004f469cb239890d16ea306ada8e9fda0", "commit_rev": "0d7d2b26b79f0d75280911e80ccc22c77fe80cb5"}
3 years, 7 months ago
(2017-05-18 03:42:25 UTC)
#34
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1495072117465160,
"parent_rev": "f864061004f469cb239890d16ea306ada8e9fda0", "commit_rev":
"0d7d2b26b79f0d75280911e80ccc22c77fe80cb5"}
commit-bot: I haz the power
Description was changed from ========== [SmartText selection] Implement TextClassifier getter and setter Pass the text ...
3 years, 7 months ago
(2017-05-18 03:42:37 UTC)
#35
Message was sent while issue was closed.
Description was changed from
==========
[SmartText selection] Implement TextClassifier getter and setter
Pass the text classifier object by the chain
AwContents -> ContentViewCore -> SelectionPopupController ->
SmartSelectionClient -> SmartSelectionProvider.
The classifier is supposed to be owned by the implementation of
SmartSelectionProvider.
Move the classifier object to the new popup contents in case of
popup creation.
BUG=710503
==========
to
==========
[SmartText selection] Implement TextClassifier getter and setter
Pass the text classifier object by the chain
AwContents -> ContentViewCore -> SelectionPopupController ->
SmartSelectionClient -> SmartSelectionProvider.
The classifier is supposed to be owned by the implementation of
SmartSelectionProvider.
Move the classifier object to the new popup contents in case of
popup creation.
BUG=710503
Review-Url: https://codereview.chromium.org/2882583004
Cr-Commit-Position: refs/heads/master@{#472643}
Committed:
https://chromium.googlesource.com/chromium/src/+/0d7d2b26b79f0d75280911e80ccc...
==========
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/0d7d2b26b79f0d75280911e80ccc22c77fe80cb5
3 years, 7 months ago
(2017-05-18 03:42:38 UTC)
#36
Issue 2882583004: [SmartText selection] Implement TextClassifier getter and setter
(Closed)
Created 3 years, 7 months ago by Tima Vaisburd
Modified 3 years, 7 months ago
Reviewers: boliu, Ted C
Base URL:
Comments: 2