commit | 6cee14fee88d147b602517080780d254ea738ecc | [log] [tgz] |
---|---|---|
author | liberato@chromium.org <liberato@chromium.org> | Tue May 07 06:09:28 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue May 07 06:09:28 2019 |
tree | 6699a5a597d13b115a5f692a600d0b7d7e2e6771 | |
parent | b70398b8d6c77a6aaae19a6b3e04708d9570a6c6 [diff] |
Add MediaExperimentManager::ScopedPlayerState. To allow clients to change the player state, this CL adds MediaExperimentManager::ScopedPlayerState. This class provides access to MediaExperimentManager::PlayerState via the -> operator, and notifies the manager when it goes out of scope. This is mostly a convenience to remove the need for accessor methods on the manager. However, it also lets the client modify multiple properties of a player atomically, before the manager tries to check for changes to trigger experiment notifications. Change-Id: Icc80f17598aeccfd3d660df869281fabfc7545cd Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1595115 Reviewed-by: Thomas Guilbert <tguilbert@chromium.org> Commit-Queue: Frank Liberato <liberato@chromium.org> Cr-Commit-Position: refs/heads/master@{#657137}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .