DescriptionRemove weak_ptr from CopresenceManager.
The WhispernetClient object provided by the CopresenceDelegate passed to the
CopresenceManager has a lifetime exceeding that of the CopresenceManager. We
explicitly want to decouple their lifetimes since we may have lifetime
restrictions imposed on WhispernetClient which may require it to outlive the
CopresenceManager. For this reason, when passing a callback to the
WhispernetClient from CopresenceManager, we were using a WeakPtr. This is
unnecessary since the same can be accomplished by passing a CancelableCallback
to the WhispernetClient and Canceling the callback in the CopresenceManager
destructor.
R=derat@chromium.org, willchan@chromium.org
BUG=None.
Committed: https://crrev.com/0e07df1bb2a7f00bf6430fe3a73d3f450e1ae3af
Cr-Commit-Position: refs/heads/master@{#292772}
Patch Set 1 #
Total comments: 7
Patch Set 2 : #
Messages
Total messages: 14 (2 generated)
|