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

Issue 1459793002: Android: Allow compiling browser without Java UI (Closed)

Created:
5 years, 1 month ago by no sievers
Modified:
5 years ago
CC:
chromium-reviews, rouslan+autofill_chromium.org, vabr+watchlistpasswordmanager_chromium.org, mlamouri+watch-geolocation_chromium.org, bondd+autofillwatch_chromium.org, posciak+watch_chromium.org, kcarattini+watch_chromium.org, jam, mcasas+watch_chromium.org, jdonnelly+autofillwatch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, Michael van Ouwerkerk, mlamouri+watch-permissions_chromium.org, estade+watch_chromium.org, gcasto+watchlist_chromium.org, vabr+watchlistautofill_chromium.org, mkwst+watchlist-passwords_chromium.org, bshe, mohsen
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Allow compiling browser without Java UI Currently OS_ANDROID is used in many places to invoke Java UI-specific codepaths. Introduce ANDROID_JAVA_UI instead where this makes sense. Exclude all android sources from chrome/browser/android and chrome/browser/ui/android when this is not set. Most of these have dependencies on the Java UI or tab model. Some of the features will need revisiting / untangling. BUG=557285, 507792 NOTRY=True Committed: https://crrev.com/2f1e811f2b4b8b3d7ea70cdbd4bd3c1bef3acb6a Cr-Commit-Position: refs/heads/master@{#363255}

Patch Set 1 #

Total comments: 7

Patch Set 2 : wip #

Patch Set 3 : #

Total comments: 16

Patch Set 4 : Ted's comments #

Patch Set 5 : use BUILDFLAG(ANDROID_JAVA_UI) #

Patch Set 6 : build fixes #

Patch Set 7 : rebase #

Total comments: 2

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+803 lines, -646 lines) Patch
M build/args/aura_android.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/BUILD.gn View 1 2 3 4 5 3 chunks +31 lines, -21 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 6 chunks +50 lines, -8 lines 0 comments Download
M chrome/browser/background_sync/background_sync_controller_impl.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_factory.cc View 1 2 3 4 4 chunks +8 lines, -7 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 3 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 9 chunks +15 lines, -23 lines 0 comments Download
M chrome/browser/dom_distiller/profile_utils.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/download/download_request_limiter.cc View 1 2 3 4 5 6 4 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/download/download_resource_throttle_unittest.cc View 1 2 3 4 5 6 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_factory.cc View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 2 3 4 29 chunks +30 lines, -29 lines 0 comments Download
M chrome/browser/history/chrome_history_backend_client.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/media/media_stream_devices_controller.cc View 1 2 3 4 5 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/media/permission_bubble_media_access_handler.cc View 1 2 3 4 5 6 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/media/router/media_router_dialog_controller.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_accessor.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/net/chrome_network_delegate.cc View 1 2 3 4 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.h View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/net/net_error_tab_helper.cc View 1 2 3 4 6 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/password_manager/chrome_password_manager_client.cc View 1 2 3 4 5 6 6 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/platform_util.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/prefs/incognito_mode_prefs.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/printing/print_job_worker.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 5 6 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_notification_manager.cc View 1 2 3 4 4 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 6 4 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/signin/chrome_signin_helper.cc View 1 2 3 4 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/signin/profile_oauth2_token_service_factory.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/speech/tts_android.h View 1 2 3 4 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/speech/tts_android.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/supervised_user/supervised_user_interstitial.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/sync/chrome_sync_client.cc View 1 2 3 4 5 4 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/sync/sessions/notification_service_sessions_router.cc View 1 2 3 4 3 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 4 7 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/ui/autofill/credit_card_scanner_view.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/autofill/password_generation_popup_controller_impl.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/blocked_content/popup_blocker_tab_helper.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_ui_controller.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/passwords/manage_passwords_ui_controller.cc View 1 2 3 4 5 6 7 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/tab_helpers.cc View 1 2 3 4 6 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/browsing_history_handler.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/memory_internals/memory_internals_proxy.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/net_export_ui.cc View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 29 chunks +375 lines, -340 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 5 chunks +17 lines, -11 lines 0 comments Download
M chrome/chrome_features.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_features.gypi View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/common/features.gni View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 7 chunks +9 lines, -9 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 9 chunks +8 lines, -9 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/base/chrome_test_suite.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (19 generated)
no sievers
https://codereview.chromium.org/1459793002/diff/1/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1459793002/diff/1/build/config/BUILD.gn#newcode43 build/config/BUILD.gn:43: # USE_X11 for all dependents so that everything that ...
5 years, 1 month ago (2015-11-19 01:14:18 UTC) #3
no sievers
https://codereview.chromium.org/1459793002/diff/1/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1459793002/diff/1/build/config/BUILD.gn#newcode43 build/config/BUILD.gn:43: # USE_X11 for all dependents so that everything that ...
5 years, 1 month ago (2015-11-19 01:26:53 UTC) #4
mfomitchev
https://codereview.chromium.org/1459793002/diff/1/build/config/BUILD.gn File build/config/BUILD.gn (right): https://codereview.chromium.org/1459793002/diff/1/build/config/BUILD.gn#newcode74 build/config/BUILD.gn:74: if (android_java_ui) { Why not just do && instead ...
5 years, 1 month ago (2015-11-19 15:41:05 UTC) #6
mfomitchev
Also, this doesn't include all of non views/ chrome/browser/ui (e.g. chrome/browser/ui/webui/) - are you planning ...
5 years, 1 month ago (2015-11-19 16:05:16 UTC) #7
no sievers
+sky for GN/gyp changes and general stamp Ted, this is ready for review. It looks ...
5 years ago (2015-11-25 22:54:29 UTC) #10
sky
sky->brettw
5 years ago (2015-11-30 16:12:22 UTC) #12
Ted C
https://codereview.chromium.org/1459793002/diff/40001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/1459793002/diff/40001/chrome/app/chrome_main_delegate.cc#newcode798 chrome/app/chrome_main_delegate.cc:798: #if defined(ANDROID_JAVA_UI) You always want this. https://codereview.chromium.org/1459793002/diff/40001/chrome/browser/background_sync/background_sync_controller_impl.cc File chrome/browser/background_sync/background_sync_controller_impl.cc ...
5 years ago (2015-11-30 19:39:05 UTC) #13
no sievers
https://codereview.chromium.org/1459793002/diff/40001/chrome/app/chrome_main_delegate.cc File chrome/app/chrome_main_delegate.cc (right): https://codereview.chromium.org/1459793002/diff/40001/chrome/app/chrome_main_delegate.cc#newcode798 chrome/app/chrome_main_delegate.cc:798: #if defined(ANDROID_JAVA_UI) On 2015/11/30 19:39:04, Ted C wrote: > ...
5 years ago (2015-11-30 23:56:34 UTC) #14
brettw
Sorry to add this on you, but we recently landed a new build #defines system ...
5 years ago (2015-12-01 00:47:22 UTC) #15
no sievers
On 2015/12/01 00:47:22, brettw wrote: > Sorry to add this on you, but we recently ...
5 years ago (2015-12-01 01:19:37 UTC) #16
no sievers
ptal, this uses BUILDFLAG(ANDROID_JAVA_UI) now.
5 years ago (2015-12-01 23:01:45 UTC) #17
no sievers
friendly ping
5 years ago (2015-12-03 19:18:34 UTC) #18
brettw
I looked at the build flag set up and it LGTM. I didn't really look ...
5 years ago (2015-12-03 19:25:08 UTC) #19
no sievers
Ted, can you stamp source file changes as well as take a look at the ...
5 years ago (2015-12-03 19:37:16 UTC) #20
Ted C
On 2015/12/03 19:37:16, sievers wrote: > Ted, > can you stamp source file changes as ...
5 years ago (2015-12-03 21:52:37 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459793002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459793002/120001
5 years ago (2015-12-03 23:52:11 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) android_chromium_gn_compile_dbg on ...
5 years ago (2015-12-04 01:58:45 UTC) #26
Bernhard Bauer
Drive-by comment for supervised users: https://codereview.chromium.org/1459793002/diff/120001/chrome/browser/supervised_user/supervised_user_interstitial.cc File chrome/browser/supervised_user/supervised_user_interstitial.cc (right): https://codereview.chromium.org/1459793002/diff/120001/chrome/browser/supervised_user/supervised_user_interstitial.cc#newcode40 chrome/browser/supervised_user/supervised_user_interstitial.cc:40: #if defined(OS_ANDROID) You probably ...
5 years ago (2015-12-04 09:31:25 UTC) #28
no sievers
https://codereview.chromium.org/1459793002/diff/120001/chrome/browser/supervised_user/supervised_user_interstitial.cc File chrome/browser/supervised_user/supervised_user_interstitial.cc (right): https://codereview.chromium.org/1459793002/diff/120001/chrome/browser/supervised_user/supervised_user_interstitial.cc#newcode40 chrome/browser/supervised_user/supervised_user_interstitial.cc:40: #if defined(OS_ANDROID) On 2015/12/04 09:31:25, Bernhard Bauer wrote: > ...
5 years ago (2015-12-04 17:58:38 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459793002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459793002/140001
5 years ago (2015-12-04 18:01:06 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1459793002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1459793002/140001
5 years ago (2015-12-04 18:31:05 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years ago (2015-12-04 18:44:04 UTC) #40
commit-bot: I haz the power
5 years ago (2015-12-04 18:44:50 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/2f1e811f2b4b8b3d7ea70cdbd4bd3c1bef3acb6a
Cr-Commit-Position: refs/heads/master@{#363255}

Powered by Google App Engine
This is Rietveld 408576698