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

Issue 1283223004: Contextual Search Panel should own ContentViewCore (Closed)

Created:
5 years, 4 months ago by mdjones
Modified:
5 years, 4 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Contextual Search Panel should own ContentViewCore This change moves ownership of the contextual search ContentViewCore to the panel rather than the manager. Currently the panel delegate exposes methods to retain functionality in the manager; this should only be temporary. BUG=521773 Committed: https://crrev.com/ee4e52407eda98685af40b813bdea0bc9a8776af Cr-Commit-Position: refs/heads/master@{#345484}

Patch Set 1 #

Patch Set 2 : Call destroy in LayoutManagerDocument #

Patch Set 3 : Clean up native code #

Total comments: 6

Patch Set 4 : Add comments #

Total comments: 5

Patch Set 5 : rebase #

Patch Set 6 : Override native panel methods for tests #

Total comments: 2

Patch Set 7 : findbugs and DEPS #

Patch Set 8 : Override wrappers instead of native #

Unified diffs Side-by-side diffs Delta from patch set Stats (+458 lines, -212 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java View 1 2 3 4 5 6 7 4 chunks +87 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelAnimation.java View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelDelegate.java View 2 chunks +48 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java View 1 2 3 4 17 chunks +49 lines, -54 lines 0 comments Download
M chrome/android/javatests/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchEventFilterTest.java View 1 2 3 4 5 6 7 3 chunks +46 lines, -1 line 0 comments Download
A chrome/browser/android/bottombar/contextualsearch/contextual_search_panel.h View 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/android/bottombar/contextualsearch/contextual_search_panel.cc View 1 chunk +147 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_manager.h View 1 2 3 chunks +0 lines, -45 lines 0 comments Download
M chrome/browser/android/contextualsearch/contextual_search_manager.cc View 1 2 2 chunks +0 lines, -111 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (12 generated)
mdjones
5 years, 4 months ago (2015-08-17 21:50:01 UTC) #2
pedro (no code reviews)
lgtm You will still need an OWNERS review, but the code LGTM. https://codereview.chromium.org/1283223004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java ...
5 years, 4 months ago (2015-08-18 21:30:47 UTC) #3
mdjones
+dtrainor for owner approval https://codereview.chromium.org/1283223004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java (right): https://codereview.chromium.org/1283223004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java#newcode58 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java:58: private ContentViewCore mContentViewCore; On 2015/08/18 ...
5 years, 4 months ago (2015-08-19 00:19:47 UTC) #5
David Trainor- moved to gerrit
a few nits. If this is an intermediate CL we can worry about making the ...
5 years, 4 months ago (2015-08-19 20:17:02 UTC) #6
David Trainor- moved to gerrit
lgtm as long as we have a follow up on moving over functionality and reducing ...
5 years, 4 months ago (2015-08-19 21:20:04 UTC) #7
mdjones
https://codereview.chromium.org/1283223004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java (right): https://codereview.chromium.org/1283223004/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java#newcode572 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java:572: nativeDestroyWebContents(mNativeContextualSearchPanelPtr); On 2015/08/19 20:17:02, David Trainor wrote: > Some ...
5 years, 4 months ago (2015-08-20 18:03:17 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283223004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283223004/80001
5 years, 4 months ago (2015-08-20 18:05:11 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/58419)
5 years, 4 months ago (2015-08-20 23:30:40 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283223004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283223004/80001
5 years, 4 months ago (2015-08-21 16:57:15 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/59075)
5 years, 4 months ago (2015-08-21 20:22:13 UTC) #17
mdjones
I added MockContextualSearchPanel that overrides the native panel methods that are unsupported in the tests. ...
5 years, 4 months ago (2015-08-21 21:26:11 UTC) #18
pedro (no code reviews)
lgtm I would prefer keeping the native methods private, but we can make that once ...
5 years, 4 months ago (2015-08-21 21:32:47 UTC) #19
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/1283223004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java (right): https://codereview.chromium.org/1283223004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java#newcode588 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java:588: protected native long nativeInit(); I haven't seen us ...
5 years, 4 months ago (2015-08-22 05:05:38 UTC) #20
mdjones
https://codereview.chromium.org/1283223004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java File chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java (right): https://codereview.chromium.org/1283223004/diff/100001/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java#newcode588 chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanel.java:588: protected native long nativeInit(); On 2015/08/22 05:05:37, David Trainor ...
5 years, 4 months ago (2015-08-24 15:32:32 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283223004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283223004/100001
5 years, 4 months ago (2015-08-24 18:28:27 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/112433)
5 years, 4 months ago (2015-08-24 19:13:33 UTC) #25
mdjones
+mnaganov for trivial/temporary inclusion of WebContentsDelegateAndroid in ContextualSearchEventFilterTest.java
5 years, 4 months ago (2015-08-25 20:25:23 UTC) #27
mnaganov (inactive)
lgtm
5 years, 4 months ago (2015-08-25 20:29:15 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1283223004/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1283223004/140001
5 years, 4 months ago (2015-08-25 22:55:59 UTC) #31
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 4 months ago (2015-08-25 23:42:30 UTC) #32
commit-bot: I haz the power
5 years, 4 months ago (2015-08-25 23:43:33 UTC) #33
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ee4e52407eda98685af40b813bdea0bc9a8776af
Cr-Commit-Position: refs/heads/master@{#345484}

Powered by Google App Engine
This is Rietveld 408576698