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

Issue 2897313002: Android: Simplify isTablet and InterfaceRegistrars (Closed)

Created:
3 years, 7 months ago by Peter Wen
Modified:
3 years, 7 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, timvolodine, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Android: Simplify isTablet and InterfaceRegistrars Clean-up after downstream changes landed to reduce passing around the same global application context. Saves ~220 bytes. BUG=646094 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.mac:mac_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2897313002 Cr-Commit-Position: refs/heads/master@{#474697} Committed: https://chromium.googlesource.com/chromium/src/+/7848fec2384849ec0663c96d3bc73e9e3afd6e25

Patch Set 1 #

Patch Set 2 : Fix junit tests #

Total comments: 2

Patch Set 3 : Pull out local variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -96 lines) Patch
M content/public/android/javatests/src/org/chromium/content/browser/VideoRotateToFullscreenTest.java View 1 chunk +1 line, -1 line 0 comments Download
M services/device/android/java/src/org/chromium/services/device/InterfaceRegistrar.java View 2 chunks +3 lines, -11 lines 0 comments Download
M services/device/battery/android/java/src/org/chromium/device/battery/BatteryMonitorFactory.java View 2 chunks +1 line, -4 lines 0 comments Download
M services/device/nfc/android/java/src/org/chromium/device/nfc/NfcImpl.java View 3 chunks +6 lines, -4 lines 0 comments Download
M services/device/nfc/android/java/src/org/chromium/device/nfc/NfcProviderImpl.java View 3 chunks +4 lines, -10 lines 0 comments Download
M services/device/nfc/android/junit/src/org/chromium/device/nfc/NFCTest.java View 1 3 chunks +3 lines, -1 line 0 comments Download
M services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java View 1 2 3 chunks +8 lines, -9 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/BarcodeDetectionImpl.java View 4 chunks +8 lines, -12 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/FaceDetectionImplGmsCore.java View 3 chunks +4 lines, -3 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/FaceDetectionProviderImpl.java View 3 chunks +7 lines, -15 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/InterfaceRegistrar.java View 2 chunks +4 lines, -8 lines 0 comments Download
M services/shape_detection/android/java/src/org/chromium/shape_detection/TextDetectionImpl.java View 4 chunks +7 lines, -12 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/DeviceFormFactor.java View 1 chunk +0 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
Peter Wen
Hi Eric, Mind taking a look at this follow-up fix for GetApplicationContext? Thanks, Peter
3 years, 7 months ago (2017-05-24 18:11:13 UTC) #7
estevenson
On 2017/05/24 18:11:13, Peter Wen wrote: > Hi Eric, > > Mind taking a look ...
3 years, 7 months ago (2017-05-24 21:34:45 UTC) #10
Peter Wen
Thanks for your review, Eric! +tedchoc@ for content/android and ui/android OWNERS. +reillyg@ for services/shape_detection and ...
3 years, 7 months ago (2017-05-25 12:02:11 UTC) #12
Ted C
lgtm
3 years, 7 months ago (2017-05-25 14:03:09 UTC) #13
Reilly Grant (use Gerrit)
lgtm with a nit https://codereview.chromium.org/2897313002/diff/20001/services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java File services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java (right): https://codereview.chromium.org/2897313002/diff/20001/services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java#newcode39 services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java:39: mAudioManager = (AudioManager) ContextUtils.getApplicationContext().getSystemService( This ...
3 years, 7 months ago (2017-05-25 14:27:26 UTC) #14
Peter Wen
Thanks for the quick reviews! https://codereview.chromium.org/2897313002/diff/20001/services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java File services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java (right): https://codereview.chromium.org/2897313002/diff/20001/services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java#newcode39 services/device/vibration/android/java/src/org/chromium/device/vibration/VibrationManagerImpl.java:39: mAudioManager = (AudioManager) ContextUtils.getApplicationContext().getSystemService( ...
3 years, 7 months ago (2017-05-25 15:24:06 UTC) #15
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/2897313002/40001
3 years, 7 months ago (2017-05-25 15:24:37 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/464555)
3 years, 7 months ago (2017-05-25 17:37:55 UTC) #20
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/2897313002/40001
3 years, 7 months ago (2017-05-25 17:45:24 UTC) #22
commit-bot: I haz the power
3 years, 7 months ago (2017-05-25 17:56:12 UTC) #25
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/7848fec2384849ec0663c96d3bc7...

Powered by Google App Engine
This is Rietveld 408576698