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

Unified Diff: build/android/resource_sizes.py

Issue 2804623003: [Android] Fix resource_sizes for APKs that have no native library. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/resource_sizes.py
diff --git a/build/android/resource_sizes.py b/build/android/resource_sizes.py
index 89e7dca11a3453f01c61ba09e0c95601511f8534..77000b9ded635f4d25125bd85079ebd0c9abe028 100755
--- a/build/android/resource_sizes.py
+++ b/build/android/resource_sizes.py
@@ -299,6 +299,8 @@ class _FileGroup(object):
None)
def FindLargest(self):
+ if not self._zip_infos:
+ return None
return max(self._zip_infos, key=lambda i: i.file_size)
def ComputeZippedSize(self):
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698