Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/browsing_data/cookies_tree_model.h" | 5 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1518 } | 1518 } |
| 1519 | 1519 |
| 1520 void CookiesTreeModel::MaybeNotifyBatchesEnded() { | 1520 void CookiesTreeModel::MaybeNotifyBatchesEnded() { |
| 1521 // Only notify the observers if this is the outermost call to EndBatch() if | 1521 // Only notify the observers if this is the outermost call to EndBatch() if |
| 1522 // called in a nested manner. | 1522 // called in a nested manner. |
| 1523 if (batches_ended_ == batches_started_ && | 1523 if (batches_ended_ == batches_started_ && |
| 1524 batches_seen_ == batches_expected_) { | 1524 batches_seen_ == batches_expected_) { |
| 1525 FOR_EACH_OBSERVER(Observer, | 1525 FOR_EACH_OBSERVER(Observer, |
| 1526 cookies_observer_list_, | 1526 cookies_observer_list_, |
| 1527 TreeModelEndBatch(this)); | 1527 TreeModelEndBatch(this)); |
| 1528 SetBatchExpectation(0, true); | |
|
Finnur
2016/08/17 16:55:54
This is an augmentation of the fix I submitted her
Finnur
2016/08/17 16:58:54
Second paragraph should have read:
| |
| 1528 } | 1529 } |
| 1529 } | 1530 } |
| OLD | NEW |