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

Issue 2874833002: Don't compile code for desktop zoom or GuestViews on mobile platforms. (Closed)

Created:
3 years, 7 months ago by Kevin McNee
Modified:
3 years, 7 months ago
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, wjmaclean, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, nasko+codewatch_chromium.org, jam, David Trainor- moved to gerrit, mathp+autofillwatch_chromium.org, darin-cc_chromium.org, Peter Beverloo, ajwong+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't compile code for desktop zoom or GuestViews on mobile platforms. Since desktop zoom is not used on mobile, we can remove the host zoom settings, zoom level management, and related code from mobile builds. GuestViews are also not needed on mobile, so we remove them as well. BUG=719658 Review-Url: https://codereview.chromium.org/2874833002 Cr-Commit-Position: refs/heads/master@{#474093} Committed: https://chromium.googlesource.com/chromium/src/+/336ea2c3ef2261939ee3be7b92da32896343249c

Patch Set 1 #

Patch Set 2 : Update CastBrowserContext #

Total comments: 15

Patch Set 3 : Rebase. #

Patch Set 4 : Address comments. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -74 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 4 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 4 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 10 chunks +14 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile.h View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_impl.h View 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_io_data.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/task_manager/web_contents_tags.cc View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 8 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.h View 1 2 3 4 3 chunks +12 lines, -3 lines 0 comments Download
M chrome/browser/ui/autofill/chrome_autofill_client.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 4 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.h View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/prefs/prefs_tab_helper.cc View 1 2 3 4 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/tab_contents/core_tab_helper.cc View 1 2 3 6 chunks +14 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/BUILD.gn View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.h View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 5 chunks +9 lines, -4 lines 0 comments Download
M chromecast/browser/cast_browser_context.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chromecast/browser/cast_browser_context.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/BUILD.gn View 1 2 3 4 5 chunks +6 lines, -2 lines 0 comments Download
M components/guest_view/browser/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M components/guest_view/renderer/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
M components/zoom/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M content/browser/browsing_data/browsing_data_remover_impl_unittest.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 4 chunks +8 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 4 chunks +8 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 chunks +8 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 6 chunks +11 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 10 chunks +15 lines, -2 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 2 3 4 3 chunks +5 lines, -3 lines 0 comments Download
M content/public/browser/browser_context.h View 2 chunks +6 lines, -1 line 0 comments Download
M content/public/browser/storage_partition.h View 2 chunks +7 lines, -2 lines 0 comments Download
M content/public/test/test_browser_context.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 51 (25 generated)
Kevin McNee
Hi, agrieve. I have a CL to remove some unnecessary code on mobile. I thought ...
3 years, 7 months ago (2017-05-10 21:48:58 UTC) #9
Kevin McNee
Hi, agrieve. I have a CL to remove some unnecessary code on mobile. I thought ...
3 years, 7 months ago (2017-05-10 21:51:59 UTC) #12
Avi (use Gerrit)
FYI I'd be cool with this. https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/tab_contents/core_tab_helper.cc File chrome/browser/ui/tab_contents/core_tab_helper.cc (right): https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/tab_contents/core_tab_helper.cc#newcode49 chrome/browser/ui/tab_contents/core_tab_helper.cc:49: Is this extensions-only? ...
3 years, 7 months ago (2017-05-10 21:57:46 UTC) #14
agrieve
On 2017/05/10 21:57:46, Avi (ping after 24h) wrote: > FYI I'd be cool with this. ...
3 years, 7 months ago (2017-05-11 00:11:48 UTC) #17
Kevin McNee
https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/tab_contents/core_tab_helper.cc File chrome/browser/ui/tab_contents/core_tab_helper.cc (right): https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/tab_contents/core_tab_helper.cc#newcode49 chrome/browser/ui/tab_contents/core_tab_helper.cc:49: On 2017/05/10 21:57:46, Avi (ping after 24h) wrote: > ...
3 years, 7 months ago (2017-05-11 15:11:54 UTC) #18
Kevin McNee
ping Avi. Any other concerns before I send this off to remaining owners?
3 years, 7 months ago (2017-05-12 15:55:31 UTC) #19
Avi (use Gerrit)
On 2017/05/12 15:55:31, Kevin McNee wrote: > ping Avi. > Any other concerns before I ...
3 years, 7 months ago (2017-05-12 15:56:42 UTC) #20
Kevin McNee
wjmaclean: Please review changes in components/guest_view components/zoom and double check removal of HostZoomMap and related ...
3 years, 7 months ago (2017-05-12 16:53:41 UTC) #22
Tobias Sargeant
android_webview/ LGTM
3 years, 7 months ago (2017-05-12 17:05:36 UTC) #23
msw
https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/BUILD.gn File chrome/browser/ui/BUILD.gn (right): https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/BUILD.gn#newcode633 chrome/browser/ui/BUILD.gn:633: "//components/guest_view/browser", Does this belong here? I have no idea ...
3 years, 7 months ago (2017-05-12 18:06:33 UTC) #24
wjmaclean
lgtm for components/ changes I'm also l-g-t-m on content/ changes, but I think we should ...
3 years, 7 months ago (2017-05-12 19:27:50 UTC) #26
Kevin McNee
Regarding use-zoom-for-dsf, I intentionally left the zoom code in blink alone so that it could ...
3 years, 7 months ago (2017-05-12 20:28:47 UTC) #27
alokp
chromecast/ lgtm
3 years, 7 months ago (2017-05-12 22:41:13 UTC) #28
oshima
thank you for heads up. Yes, this will not impact use-zoom-for-dsf work for android. lgtm
3 years, 7 months ago (2017-05-13 01:49:03 UTC) #29
Bernhard Bauer
lgtm https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode62 chrome/browser/ui/prefs/prefs_tab_helper.cc:62: #if !defined(OS_ANDROID) Can you move this up before ...
3 years, 7 months ago (2017-05-15 09:33:28 UTC) #30
Kevin McNee
https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/BUILD.gn File chrome/browser/ui/BUILD.gn (right): https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/BUILD.gn#newcode633 chrome/browser/ui/BUILD.gn:633: "//components/guest_view/browser", On 2017/05/12 18:06:32, msw wrote: > Does this ...
3 years, 7 months ago (2017-05-15 18:22:18 UTC) #31
Kevin McNee
https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/prefs/prefs_tab_helper.cc File chrome/browser/ui/prefs/prefs_tab_helper.cc (right): https://codereview.chromium.org/2874833002/diff/20001/chrome/browser/ui/prefs/prefs_tab_helper.cc#newcode62 chrome/browser/ui/prefs/prefs_tab_helper.cc:62: #if !defined(OS_ANDROID) On 2017/05/15 09:33:28, Bernhard Bauer wrote: > ...
3 years, 7 months ago (2017-05-15 20:02:10 UTC) #32
msw
c/b/ui lgtm
3 years, 7 months ago (2017-05-15 20:43:06 UTC) #33
Kevin McNee
Adding owners for the last few files. PTAL. afakhry for chrome/browser/task_manager/web_contents_tags.cc phajdan.jr for chrome/test/base/ blundell ...
3 years, 7 months ago (2017-05-15 21:44:20 UTC) #35
afakhry
web_contents_tags.cc lgtm.
3 years, 7 months ago (2017-05-16 00:10:04 UTC) #36
blundell
//components/BUILD.gn lgtm
3 years, 7 months ago (2017-05-16 13:29:38 UTC) #37
Kevin McNee
ping phajdan.jr
3 years, 7 months ago (2017-05-18 14:47:23 UTC) #38
Kevin McNee
ping phajdan.jr
3 years, 7 months ago (2017-05-23 15:25:22 UTC) #39
Paweł Hajdan Jr.
chrome/test LGTM
3 years, 7 months ago (2017-05-23 18:25:51 UTC) #40
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/2874833002/80001
3 years, 7 months ago (2017-05-23 20:55:08 UTC) #47
commit-bot: I haz the power
3 years, 7 months ago (2017-05-23 22:51:37 UTC) #51
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/336ea2c3ef2261939ee3be7b92da...

Powered by Google App Engine
This is Rietveld 408576698