| Index: cc/trees/layer_tree_host.cc
|
| diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
|
| index 45ecee48dbc3fea4d3ec2def4aa507f3a1e6b028..eaedf406c0c0dd66c9314e0741c5558cc1e3fa51 100644
|
| --- a/cc/trees/layer_tree_host.cc
|
| +++ b/cc/trees/layer_tree_host.cc
|
| @@ -1279,8 +1279,8 @@ void LayerTreeHost::QueueSwapPromise(scoped_ptr<SwapPromise> swap_promise) {
|
| }
|
|
|
| void LayerTreeHost::BreakSwapPromises(SwapPromise::DidNotSwapReason reason) {
|
| - for (size_t i = 0; i < swap_promise_list_.size(); i++)
|
| - swap_promise_list_[i]->DidNotSwap(reason);
|
| + for (auto* swap_promise : swap_promise_list_)
|
| + swap_promise->DidNotSwap(reason);
|
| swap_promise_list_.clear();
|
| }
|
|
|
|
|