Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Unified Diff: components/browser_sync/profile_sync_service.cc

Issue 2740143002: Change base::Value::ListStorage to std::vector<base::Value> (Closed)
Patch Set: Comment Updates Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()) {

Powered by Google App Engine
This is Rietveld 408576698