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

Issue 1490613002: (trybot test) base: Make ScopedPtrMap use DISALLOW_COPY_AND_ASSIGN (Closed)

Created:
5 years ago by vmpstr
Modified:
5 years ago
Reviewers:
danakj, Nico, Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, vmpstr+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

(trybot test) base: Make ScopedPtrMap use DISALLOW_COPY_AND_ASSIGN Currently the class uses MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03 which adds a .Pass() method and works for passing with Callback. But there are no users of this passing ownership in Callback, so switch to the general DISALLOW_COPY_AND_ASSIGN macro. This unconvered a use of ScopedPtrMap::Pass() though, so I just changed it to use a std::map instead of ScopedPtrMap. R=Nico, zea@chromium.org BUG=557422, 554291 patch from issue 1480773002 at patchset 40001 (http://crrev.com/1480773002#ps40001)

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -39 lines) Patch
M base/containers/scoped_ptr_map.h View 3 chunks +3 lines, -4 lines 0 comments Download
M base/containers/scoped_ptr_map_unittest.cc View 1 chunk +0 lines, -28 lines 0 comments Download
M sync/engine/commit.h View 3 chunks +4 lines, -2 lines 0 comments Download
M sync/engine/commit.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M sync/engine/commit_processor.cc View 2 chunks +3 lines, -1 line 3 comments Download

Messages

Total messages: 8 (3 generated)
danakj
Would you like to rebase this on my CL then to convert the type? Thanks ...
5 years ago (2015-12-01 00:42:34 UTC) #4
Nico
thanks! https://codereview.chromium.org/1490613002/diff/1/sync/engine/commit_processor.cc File sync/engine/commit_processor.cc (right): https://codereview.chromium.org/1490613002/diff/1/sync/engine/commit_processor.cc#newcode44 sync/engine/commit_processor.cc:44: (*contributions)[it.Get()] = std::move(contribution); Should there be a comment ...
5 years ago (2015-12-01 01:02:16 UTC) #5
danakj
https://codereview.chromium.org/1490613002/diff/1/sync/engine/commit_processor.cc File sync/engine/commit_processor.cc (right): https://codereview.chromium.org/1490613002/diff/1/sync/engine/commit_processor.cc#newcode44 sync/engine/commit_processor.cc:44: (*contributions)[it.Get()] = std::move(contribution); On 2015/12/01 01:02:16, Nico wrote: > ...
5 years ago (2015-12-01 01:03:12 UTC) #6
vmpstr
https://codereview.chromium.org/1490613002/diff/1/sync/engine/commit_processor.cc File sync/engine/commit_processor.cc (right): https://codereview.chromium.org/1490613002/diff/1/sync/engine/commit_processor.cc#newcode44 sync/engine/commit_processor.cc:44: (*contributions)[it.Get()] = std::move(contribution); On 2015/12/01 01:02:16, Nico wrote: > ...
5 years ago (2015-12-01 01:03:58 UTC) #7
Nico
5 years ago (2015-12-01 01:04:19 UTC) #8
Message was sent while issue was closed.
Ah, just saw the discussion on the other CL. Maybe the CL description could
describe the actual workaround then :-)

Powered by Google App Engine
This is Rietveld 408576698