DescriptionPower Save Blocker: Eliminate passing ViewAndroid as WeakPtr
As of https://codereview.chromium.org/2103243002/, PowerSaveBlockerAndroid
accesses the ViewAndroid pointer it is passed only at a time when that
ViewAndroid pointer is guaranteed to be valid. This CL moves
PowerSaveBlockerAndroid away from consuming the ViewAndroid pointer as a
WeakPtr. The concrete motivation is to eliminate WakeLockServiceContext needing
to listen for WebContentsObserver::WebContentsDestroyed() as part of decoupling
the wake lock service from //content.
BUG=612346
Committed: https://crrev.com/87cd0848a0d1453e7553a72b0686d42fabf8ff3a
Cr-Commit-Position: refs/heads/master@{#421169}
Patch Set 1 #Patch Set 2 : Remove weak_ptr.h include #Patch Set 3 : Rebase #
Messages
Total messages: 15 (9 generated)
|