DescriptionFire SystemMonitor::{RESUME,SUSPEND}_EVENT on Android.
This improves SystemMonitor on Android by firing RESUME/SUSPEND events when the
Android main activity goes to foreground/background.
This lets the Android port use the same code path as other platforms to support
the close idle network connections functionnality.
SUSPEND events are now fired 1 minute after the main activity goes to
background.
Additionnally this CL cleans up ActivityStatus used by the Java side
SystemMonitor class. ActivityStatus was suffering from various refactorings and
was providing a counter intuitive interface with the Listener/StateListener
duality.
In particular it was possible to call SystemMonitor.onPause/Resume() as opposed
to onStateChange(). This could lead to SystemMonitor.getActivity() returning
null. The issue was raised while this CL was prepared.
BUG=164495
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=172864
Patch Set 1 #Patch Set 2 : #
Total comments: 2
Patch Set 3 : Address Marcus' comment + revert some of the changes in ActivityStatus.java #Patch Set 4 : Revert changes in http_network_layer.cc #Patch Set 5 : Update findbugs_known_bugs.txt #Messages
Total messages: 18 (0 generated)
|