Chromium Code Reviews| Index: components/browser_sync/profile_sync_service.cc |
| diff --git a/components/browser_sync/profile_sync_service.cc b/components/browser_sync/profile_sync_service.cc |
| index ed837f1b31b2ecfa7f70739d6a4f4de247cb9e3a..21e863c9ff9653e6b570727d5ba259558ec7e3ce 100644 |
| --- a/components/browser_sync/profile_sync_service.cc |
| +++ b/components/browser_sync/profile_sync_service.cc |
| @@ -2111,7 +2111,9 @@ GetAllNodesRequestHelper::GetAllNodesRequestHelper( |
| const base::Callback<void(std::unique_ptr<base::ListValue>)>& callback) |
| : result_accumulator_(new base::ListValue()), |
| awaiting_types_(requested_types), |
| - callback_(callback) {} |
| + callback_(callback) { |
| + result_accumulator_->Reserve(awaiting_types_.Size()); |
|
jdoerrie
2017/03/15 10:10:41
This was a tricky one to debug. Prior to this chan
skym
2017/03/15 16:57:23
While I don't understand why noexcept is required
brettw
2017/03/15 22:14:14
I thought about this for a while and it doesn't ma
jdoerrie
2017/03/16 19:01:56
I reinvestigated this today, but it still does not
|
| +} |
| GetAllNodesRequestHelper::~GetAllNodesRequestHelper() { |
| if (!awaiting_types_.Empty()) { |