Chromium Code Reviews
DescriptionAdd base/android/activity_status.cc
This patch adds a small thread-safe wrapper around the Java
org.chromium.base.ActivityStatus that can be used to listen to activity state
changes from native code.
This uses a base::ObserverListThreadSafe to guarantee that listeners can be
registered on any threads, and that their OnActivityStateChange() method will
always be called on the thread that created them.
+ Ensure both C++ and Java always use the same constants when it comes to
ActivityState values.
TBR=digit@chromium.org
BUG=233536
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198124
Patch Set 1 #Patch Set 2 : Fix flakiness #Patch Set 3 : Sync #
Messages
Total messages: 3 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||