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

Issue 2110543004: Move JNI bindings for url_formatter from chrome to //components/url_formatter (Closed)

Created:
4 years, 5 months ago by ingemara
Modified:
4 years, 3 months ago
CC:
blundell+watchlist_chromium.org, browser-components-watch_chromium.org, chromium-reviews, droger+watchlist_chromium.org, feature-media-reviews_chromium.org, mlamouri+watch-notifications_chromium.org, noyau+watch_chromium.org, Peter Beverloo, sdefresne+watchlist_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move JNI bindings for url_formatter from chrome to //components/url_formatter By moving the url_formatter methods out of org.chromium.chrome.browser.UrlUtilities to it's component, other emdedders than Chrome can benefit from the Java version. This CL removes the tests originally written for a Java implementation of the methods replaced by FormatUrlForSecurityDisplay in https://codereview.chromium.org/1357563002. It's not trivial to move the tests over to the component as they depend on native library initialization performed by //content which is disallowed in components/url_formatter/DEPS. Also, the tests are redundant as the code is thoroughly tested by other means. Currently there are no users of formatUrlForDisplay() in Chromium, but Opera would like it exposed. BUG=624407 Committed: https://crrev.com/b232498ead0784193c039ea1997ecafc391503ef Cr-Commit-Position: refs/heads/master@{#414356}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Move jni target to android/ #

Patch Set 4 : Remove always-null argument to native method #

Patch Set 5 : Add gyp support #

Patch Set 6 : gyp: conditionally exclude Android sources #

Total comments: 5

Patch Set 7 : Address review issues & fix build files #

Patch Set 8 : Deviate from gn format & registration methods pattern #

Patch Set 9 : Rebase #

Patch Set 10 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+334 lines, -154 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/bookmarks/BookmarkEditActivity.java View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/DownloadHistoryAdapter.java View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/ui/MediaSessionTabHelper.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/pageinfo/WebsiteSettingsPopup.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/HomepageEditor.java View 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/SingleWebsitePreferences.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tabmodel/ChromeTabCreator.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/util/UrlUtilities.java View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -44 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/webapps/WebappUrlBar.java View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeTest.java View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/util/UrlUtilitiesTest.java View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -39 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/android/url_utilities.cc View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -38 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/url_formatter/BUILD.gn View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -1 line 0 comments Download
M components/url_formatter/DEPS View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
A + components/url_formatter/android/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +11 lines, -8 lines 0 comments Download
A components/url_formatter/android/component_jni_registrar.h View 1 chunk +21 lines, -0 lines 0 comments Download
A components/url_formatter/android/component_jni_registrar.cc View 1 2 3 4 5 6 7 1 chunk +27 lines, -0 lines 0 comments Download
A components/url_formatter/android/java/src/org/chromium/components/url_formatter/UrlFormatter.java View 1 2 3 1 chunk +90 lines, -0 lines 0 comments Download
M components/url_formatter/url_formatter.gyp View 1 2 3 4 5 6 2 chunks +45 lines, -0 lines 0 comments Download
A components/url_formatter/url_formatter_android.h View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download
A components/url_formatter/url_formatter_android.cc View 1 2 3 4 5 6 7 8 1 chunk +77 lines, -0 lines 0 comments Download

Messages

Total messages: 57 (24 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2110543004/1
4 years, 5 months ago (2016-06-29 13:48:27 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/28700) ios-simulator-gn on ...
4 years, 5 months ago (2016-06-29 13:51:13 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2110543004/20001
4 years, 5 months ago (2016-06-29 14:02:55 UTC) #7
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/183704) ios-device-gn on ...
4 years, 5 months ago (2016-06-29 14:06:14 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2110543004/40001
4 years, 5 months ago (2016-06-29 17:16:13 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-29 18:34:38 UTC) #14
ingemara
PTAL and feel free to suggest any reviewers you might think would be suitable reviewing ...
4 years, 5 months ago (2016-06-30 09:10:05 UTC) #19
mlamouri (slow - plz ping)
usage lgtm
4 years, 5 months ago (2016-06-30 10:55:35 UTC) #20
sdefresne
drive-by: The gyp changes should be made to components/url_formatter/url_formatter.gyp.
4 years, 5 months ago (2016-06-30 11:21:43 UTC) #21
ingemara
On 2016/06/30 11:21:43, sdefresne wrote: > drive-by: > > The gyp changes should be made ...
4 years, 5 months ago (2016-06-30 13:57:21 UTC) #22
Peter Kasting
Did not review any .java files https://codereview.chromium.org/2110543004/diff/100001/components/url_formatter/BUILD.gn File components/url_formatter/BUILD.gn (right): https://codereview.chromium.org/2110543004/diff/100001/components/url_formatter/BUILD.gn#newcode27 components/url_formatter/BUILD.gn:27: if (!is_android) { ...
4 years, 5 months ago (2016-07-01 06:59:33 UTC) #23
ingemara
On 2016/07/01 06:59:33, Peter Kasting (slow) wrote: > https://codereview.chromium.org/2110543004/diff/100001/components/url_formatter/android/BUILD.gn#newcode13 > components/url_formatter/android/BUILD.gn:13: [ > "java/src/org/chromium/components/url_formatter/UrlFormatter.java" ] ...
4 years, 5 months ago (2016-07-01 08:52:27 UTC) #24
Peter Kasting
Small request: when you reply to comments, please do so on the codereview site itself, ...
4 years, 5 months ago (2016-07-01 20:34:36 UTC) #25
ingemara
On 2016/07/01 20:34:36, Peter Kasting wrote: > Small request: when you reply to comments, please ...
4 years, 5 months ago (2016-07-04 09:10:49 UTC) #26
Peter Kasting
On 2016/07/04 09:10:49, ingemara wrote: > Thanks for taking a look. Before I go ahead ...
4 years, 5 months ago (2016-07-04 21:57:34 UTC) #27
ingemara
On 2016/06/30 10:55:35, Mounir Lamouri wrote: > usage lgtm Do you think you could suggest ...
4 years, 5 months ago (2016-07-05 12:32:44 UTC) #28
Peter Kasting
On 2016/07/05 12:32:44, ingemara wrote: > On 2016/06/30 10:55:35, Mounir Lamouri wrote: > > usage ...
4 years, 5 months ago (2016-07-06 20:31:27 UTC) #29
Peter Kasting
Bump -- it looks like nothing has happened here, please be sure to set some ...
4 years, 4 months ago (2016-08-20 02:58:07 UTC) #30
ingemara
On 2016/08/20 02:58:07, Peter Kasting wrote: > Bump -- it looks like nothing has happened ...
4 years, 4 months ago (2016-08-22 15:25:56 UTC) #33
Nico
what files do you want me to look at?
4 years, 4 months ago (2016-08-22 16:35:49 UTC) #34
gone
What happened to the tests?
4 years, 4 months ago (2016-08-22 17:05:28 UTC) #35
ingemara
On 2016/08/22 17:05:28, dfalcantara wrote: > What happened to the tests? The code is already ...
4 years, 4 months ago (2016-08-23 07:55:13 UTC) #36
ingemara
On 2016/08/22 16:35:49, Nico wrote: > what files do you want me to look at? ...
4 years, 4 months ago (2016-08-23 07:59:24 UTC) #37
gone
lgtm
4 years, 4 months ago (2016-08-23 15:34:10 UTC) #38
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/2110543004/160001
4 years, 4 months ago (2016-08-24 08:03:19 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/256692) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 4 months ago (2016-08-24 08:05:56 UTC) #43
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/2110543004/180001
4 years, 4 months ago (2016-08-24 08:16:50 UTC) #46
commit-bot: I haz the power
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/244738)
4 years, 4 months ago (2016-08-24 08:24:17 UTC) #48
ingemara
On 2016/08/24 08:24:17, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 4 months ago (2016-08-24 08:47:09 UTC) #50
jochen (gone - plz use gerrit)
lgtm
4 years, 4 months ago (2016-08-24 20:59:45 UTC) #51
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/2110543004/180001
4 years, 3 months ago (2016-08-25 07:10:52 UTC) #53
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 3 months ago (2016-08-25 08:13:55 UTC) #55
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 08:15:13 UTC) #57
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/b232498ead0784193c039ea1997ecafc391503ef
Cr-Commit-Position: refs/heads/master@{#414356}

Powered by Google App Engine
This is Rietveld 408576698