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

Issue 2830843004: Update to newer Android Lint and suppress new Lint errors (Closed)

Created:
3 years, 8 months ago by F
Modified:
3 years, 7 months ago
CC:
chromium-reviews, gogerald+paymentswatch_chromium.org, sadrul, qsr+mojo_chromium.org, vmpstr+watch_chromium.org, rogerm+autofillwatch_chromium.org, browser-components-watch_chromium.org, dcheng, dougt+watch_chromium.org, noyau+watch_chromium.org, dmazzoni+watch_chromium.org, agrieve+watch_chromium.org, net-reviews_chromium.org, wifiprefetch-reviews_google.com, darin (slow to review), cbentzel+watch_chromium.org, awdf+watch_chromium.org, aboxhall+watch_chromium.org, sebsg+autofillwatch_chromium.org, viettrungluu+watch_chromium.org, jam, raymes+watch_chromium.org, abarth-chromium, rouslan+autofill_chromium.org, je_julie, darin-cc_chromium.org, jochen+watch_chromium.org, vabr+watchlistautofill_chromium.org, kalyank, android-webview-reviews_chromium.org, mlamouri+watch-content_chromium.org, yzshen+watch_chromium.org, chromoting-reviews_chromium.org, vabr+watchlistpasswordmanager_chromium.org, ntp-dev+reviews_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, yuzo+watch_chromium.org, feature-media-reviews_chromium.org, twellington+watch_chromium.org, timvolodine, asvitkine+watch_chromium.org, mlamouri+watch-sensors_chromium.org, mlamouri+watch-permissions_chromium.org, gcasto+watchlist_chromium.org, zpeng+watch_chromium.org, sync-reviews_chromium.org, David Trainor- moved to gerrit, rouslan+payments_chromium.org, mathp+autofillwatch_chromium.org, riju_, donnd+watch_chromium.org, nektar+watch_chromium.org, jbudorick+watch_chromium.org, Aaron Boodman, ortuno+watch_chromium.org, scheib+watch_chromium.org, mikecase+watch_chromium.org, dtseng+watch_chromium.org, mahmadi+paymentswatch_chromium.org, estade+watch_chromium.org, danakj+watch_chromium.org, sebsg+paymentswatch_chromium.org, gayane+watch_chromium.org, Zhongyi Shi, AndyWu
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update to newer Android Lint and suppress new Lint errors This CL updates DEPS to enable updated Android Lint that would work for Java 8. Also, it adds inline suppression for newly discovered Lint errors. Additionally, it suppresses Lint deprecation warning for "android:singleLine". Moreover, it suppresses Lint warnings "AuthLeak", "VisibleForTests", etc. for tests, and Lint error "ByteOrderMark" in generated android_chrome_strings.xml (crbug.com/715196). BUG=635567, 669999 Review-Url: https://codereview.chromium.org/2830843004 Cr-Commit-Position: refs/heads/master@{#468545} Committed: https://chromium.googlesource.com/chromium/src/+/5512e732f9513b2e5b3f8c47f146dfa5c3582b6d

Patch Set 1 : Rebase 20170425 #

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : rebase #

Patch Set 5 : remove xml #

Patch Set 6 : Update DEPS to newer Android Lint and suppress new Lint errors #

Patch Set 7 : rebase #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Total comments: 33

Patch Set 12 : rebase #

Patch Set 13 : rebase #

Patch Set 14 : rebase #

Patch Set 15 : rebase #

Patch Set 16 : rebase #

Patch Set 17 : rebase #

Patch Set 18 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -5 lines) Patch
M android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewCreateDestroyActivity.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M base/android/java/src/org/chromium/base/ApplicationStatus.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M build/android/lint/suppressions.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +18 lines, -2 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeActivitySessionTracker.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/DeferredStartupHandler.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/WarmupManager.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/accessibility/FontSizePrefs.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/appmenu/AppMenu.java View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/contextualsearch/ContextualSearchManager.java View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpUploadRetry.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/DownloadResumptionScheduler.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/download/ui/OfflineGroupHeaderView.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAState.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/identity/SettingsSecureBasedIdentificationGenerator.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/invalidation/ChromeBrowserSyncAdapterService.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/CastNotificationControl.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/media/remote/RemoteMediaPlayerController.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/nfc/BeamCallback.java View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PackageManagerDelegate.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/permissions/PermissionDialogController.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/precache/PrecacheController.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/AboutChromePreferences.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/privacy/PrivacyPreferencesManager.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/website/ManageSpaceActivity.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchWidgetProvider.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/services/GoogleServicesManager.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/signin/SigninHelper.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/signin/SigninManager.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/sync/SyncController.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabIdManager.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabStateBrowserControlsVisibilityDelegate.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/widget/accessibility/AccessibilityTabModelListItem.java View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/CustomNotificationBuilderTest.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/android/webapk/libs/client/src/org/chromium/webapk/lib/client/DexOptimizer.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/android/cast_emulator/src/org/chromium/chrome/browser/media/remote/RemoteSessionManager.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/android/javatests/src/org/chromium/chrome/test/util/browser/signin/SigninTestUtil.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -0 lines 0 comments Download
M chromecast/base/java/src/org/chromium/chromecast/base/CastSettingsManager.java View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +8 lines, -0 lines 0 comments Download
M chromecast/browser/android/apk/src/org/chromium/chromecast/shell/CastSysInfoAndroid.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M components/sync/android/java/src/org/chromium/components/sync/AndroidSyncSettings.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/BackgroundSyncNetworkObserver.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ChildProcessLauncher.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -0 lines 0 comments Download
M device/battery/android/java/src/org/chromium/device/battery/BatteryStatusManager.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M device/bluetooth/android/java/src/org/chromium/device/bluetooth/Wrappers.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M device/sensors/android/java/src/org/chromium/device/sensors/DeviceSensors.java View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M device/usb/android/java/src/org/chromium/device/usb/ChromeUsbInterface.java View 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/android/javatests/src/org/chromium/mojo/bindings/ValidationTest.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M net/android/java/src/org/chromium/net/NetworkChangeNotifier.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M net/android/java/src/org/chromium/net/NetworkChangeNotifierAutoDetect.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M remoting/android/java/src/org/chromium/chromoting/jni/JniInterface.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M tools/android/kerberos/SpnegoAuthenticator/src/org/chromium/tools/spnegoauthenticator/SpnegoAuthenticatorService.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/Clipboard.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download
M ui/android/java/src/org/chromium/ui/base/SelectFileDialog.java View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 117 (83 generated)
F
Hi Andrew, PTAL. Thanks!
3 years, 8 months ago (2017-04-25 18:55:52 UTC) #14
agrieve
lgtm, only questionable change is the maxlines one. SO says it is subtly different: http://stackoverflow.com/questions/17124985/why-does-androidsingleline-true-make-listview-scrolling-very-laggy/17125324#17125324 ...
3 years, 8 months ago (2017-04-25 19:42:41 UTC) #18
F
On 2017/04/25 19:42:41, agrieve wrote: > lgtm, only questionable change is the maxlines one. > ...
3 years, 8 months ago (2017-04-25 19:52:28 UTC) #19
Ted C
I don't think singleLine and maxLines are equivalent. If I recall, one makes ellipsizing work ...
3 years, 8 months ago (2017-04-25 20:59:16 UTC) #25
gone
On 2017/04/25 20:59:16, Ted C wrote: > I don't think singleLine and maxLines are equivalent. ...
3 years, 8 months ago (2017-04-25 21:03:24 UTC) #26
F
On 2017/04/25 21:03:24, slow (dfalcantara) wrote: > On 2017/04/25 20:59:16, Ted C wrote: > > ...
3 years, 8 months ago (2017-04-25 21:39:17 UTC) #27
Ted C
On 2017/04/25 21:39:17, F wrote: > On 2017/04/25 21:03:24, slow (dfalcantara) wrote: > > On ...
3 years, 8 months ago (2017-04-26 18:09:18 UTC) #28
F
Thanks Andrew, Dan, and Ted! PTAL I've reverted the android:singleLine changes. Since DEPS is already ...
3 years, 7 months ago (2017-04-27 14:08:22 UTC) #49
Ted C
I'm pretty sure all the static lint todos should be removed. https://codereview.chromium.org/2830843004/diff/220001/base/android/java/src/org/chromium/base/ApplicationStatus.java File base/android/java/src/org/chromium/base/ApplicationStatus.java (right): ...
3 years, 7 months ago (2017-04-27 19:02:48 UTC) #58
Ted C
+rouslan for realz for PackageManagerDelegate.java
3 years, 7 months ago (2017-04-27 20:04:23 UTC) #60
please use gerrit instead
PackageManagerDelegate LGTM. Out of curiosity, why is lint complaining about reading signatures?
3 years, 7 months ago (2017-04-27 20:07:39 UTC) #61
Ted C
On 2017/04/27 20:07:39, ಠ_ಠ wrote: > PackageManagerDelegate LGTM. > > Out of curiosity, why is ...
3 years, 7 months ago (2017-04-27 20:18:42 UTC) #62
please use gerrit instead
Thank you for the link. FWIW, I'm aware of this exploit and our design mitigates ...
3 years, 7 months ago (2017-04-27 20:30:54 UTC) #63
Ted C
https://codereview.chromium.org/2830843004/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/PackageManagerDelegate.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PackageManagerDelegate.java (right): https://codereview.chromium.org/2830843004/diff/220001/chrome/android/java/src/org/chromium/chrome/browser/payments/PackageManagerDelegate.java#newcode33 chrome/android/java/src/org/chromium/chrome/browser/payments/PackageManagerDelegate.java:33: // TODO(crbug.com/635567): Fix this properly. On 2017/04/27 19:02:47, Ted ...
3 years, 7 months ago (2017-04-27 22:49:51 UTC) #64
F
Thanks Andrew, Rouslan, and Ted! PTAL https://codereview.chromium.org/2830843004/diff/220001/base/android/java/src/org/chromium/base/ApplicationStatus.java File base/android/java/src/org/chromium/base/ApplicationStatus.java (right): https://codereview.chromium.org/2830843004/diff/220001/base/android/java/src/org/chromium/base/ApplicationStatus.java#newcode64 base/android/java/src/org/chromium/base/ApplicationStatus.java:64: // TODO(crbug.com/635567): Fix ...
3 years, 7 months ago (2017-04-28 18:25:15 UTC) #68
Ted C
lgtm
3 years, 7 months ago (2017-04-28 20:23:51 UTC) #71
F
Hi Brett, PTAL. Thanks!
3 years, 7 months ago (2017-04-28 20:49:44 UTC) #73
brettw
Can you make clear what it is you need me to look at? I assume ...
3 years, 7 months ago (2017-04-28 21:44:56 UTC) #76
gone
download/ui lgtm
3 years, 7 months ago (2017-04-30 02:15:56 UTC) #77
F
Hi Bo, Cherie, Lambros, Reilly, Stephen, Yaron, and Yuzhu, PTAL. Thanks! Please take a look ...
3 years, 7 months ago (2017-05-01 15:53:25 UTC) #80
Reilly Grant (use Gerrit)
//device lgtm, I'll take a look at fixing this issues soon.
3 years, 7 months ago (2017-05-01 16:06:43 UTC) #83
boliu
android_webview rs lgtm
3 years, 7 months ago (2017-05-01 16:20:24 UTC) #84
Zhongyi Shi
The net changes generally look good to me, pulling Paul to take a look as ...
3 years, 7 months ago (2017-05-01 16:58:37 UTC) #87
pauljensen
net/ lgtm
3 years, 7 months ago (2017-05-01 17:12:30 UTC) #89
Yaron
lgtm
3 years, 7 months ago (2017-05-01 17:34:59 UTC) #90
slan
+tsunghung for FYI cast lgtm
3 years, 7 months ago (2017-05-01 17:49:40 UTC) #93
Lambros
remoting lgtm
3 years, 7 months ago (2017-05-01 18:06:58 UTC) #94
yzshen1
mojo LGTM
3 years, 7 months ago (2017-05-01 19:56:12 UTC) #95
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/2830843004/320001
3 years, 7 months ago (2017-05-01 20:03:31 UTC) #101
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/168354)
3 years, 7 months ago (2017-05-01 20:36:45 UTC) #103
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/2830843004/340001
3 years, 7 months ago (2017-05-01 21:39:35 UTC) #109
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/443063)
3 years, 7 months ago (2017-05-01 23:03:56 UTC) #111
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/2830843004/360001
3 years, 7 months ago (2017-05-02 01:07:43 UTC) #114
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 03:19:02 UTC) #117
Message was sent while issue was closed.
Committed patchset #18 (id:360001) as
https://chromium.googlesource.com/chromium/src/+/5512e732f9513b2e5b3f8c47f146...

Powered by Google App Engine
This is Rietveld 408576698