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

Issue 1480773002: base: Make ScopedPtrMap use DISALLOW_COPY_AND_ASSIGN. (Closed)

Created:
5 years ago by danakj
Modified:
5 years ago
Reviewers:
limasdf, 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, piman, Matt Giuca, limasdf
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

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. R=Nico, zea@chromium.org BUG=557422, 554291 Committed: https://crrev.com/ca21b9b2a1ddf5ffe2a81e1d9f991ea03d89a74a Cr-Commit-Position: refs/heads/master@{#362488}

Patch Set 1 #

Patch Set 2 : move-only-1: . #

Patch Set 3 : move-only-1: rebase-and-fix-compile #

Patch Set 4 : move-only-1: dontchangetype #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -36 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.cc View 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 45 (16 generated)
danakj
5 years ago (2015-11-25 23:58:53 UTC) #1
danakj
thakis: please review base/ zea: please review sync/
5 years ago (2015-11-26 00:01:20 UTC) #2
danakj
+mgiuca@chromium.org FYI
5 years ago (2015-11-26 00:01:49 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480773002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480773002/1
5 years ago (2015-11-26 00:09:31 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/113908)
5 years ago (2015-11-26 01:17:18 UTC) #10
Nico
The Win dbg bot complains: FAILED: ninja -t msvc -e environment.x86 -- E:\b\build\goma/gomacc "E:\b\depot_tools\win_toolchain\vs2013_files\VC\bin\amd64_x86\cl.exe" /nologo ...
5 years ago (2015-11-26 02:45:26 UTC) #11
limasdf
I am also stuck with this issue.(https://codereview.chromium.org/1459773002/#ps80001) Probably MSVC2013 issue[1] is the reason. The best ...
5 years ago (2015-11-26 12:35:23 UTC) #13
Nico
They all just msvs2013, but in release builds I guess some optimization prevents the copy ...
5 years ago (2015-11-26 13:27:44 UTC) #14
danakj
On 2015/11/26 13:27:44, Nico wrote: > They all just msvs2013, but in release builds I ...
5 years ago (2015-11-30 21:48:50 UTC) #15
danakj
Hm, maybe not..
5 years ago (2015-11-30 21:50:52 UTC) #16
danakj
On 2015/11/30 21:50:52, danakj (behind on reviews) wrote: > Hm, maybe not.. Oh, typos. :D ...
5 years ago (2015-11-30 21:53:39 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480773002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480773002/40001
5 years ago (2015-11-30 22:00:30 UTC) #19
limasdf
Nice! :)
5 years ago (2015-11-30 23:06:39 UTC) #20
danakj
On 2015/11/30 23:06:39, limasdf wrote: > Nice! :) Well, it didn't work. :P Maybe I'm ...
5 years ago (2015-11-30 23:08:27 UTC) #21
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/115078)
5 years ago (2015-11-30 23:12:39 UTC) #23
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480773002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480773002/60001
5 years ago (2015-11-30 23:30:12 UTC) #26
vmpstr
On 2015/11/30 23:12:39, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years ago (2015-11-30 23:33:34 UTC) #27
chromium-reviews
Commit is the one that has ContributionMap as a member, so if a copy constructor ...
5 years ago (2015-11-30 23:39:53 UTC) #28
danakj
On Mon, Nov 30, 2015 at 3:33 PM, <vmpstr@chromium.org> wrote: > On 2015/11/30 23:12:39, commit-bot: ...
5 years ago (2015-11-30 23:42:30 UTC) #29
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/73164)
5 years ago (2015-11-30 23:46:06 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480773002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480773002/60001
5 years ago (2015-11-30 23:50:49 UTC) #33
danakj
For now, I didn't convert the type to a std::map. PTAL thakis and zea
5 years ago (2015-12-01 00:37:54 UTC) #34
vmpstr
On 2015/12/01 00:37:54, danakj (behind on reviews) wrote: > For now, I didn't convert the ...
5 years ago (2015-12-01 00:41:12 UTC) #35
Nicolas Zea
sync LGTM
5 years ago (2015-12-01 00:46:18 UTC) #36
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-01 03:07:48 UTC) #38
Nico
lgtm
5 years ago (2015-12-01 19:27:49 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1480773002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1480773002/60001
5 years ago (2015-12-01 19:43:21 UTC) #41
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-01 19:58:02 UTC) #43
commit-bot: I haz the power
5 years ago (2015-12-01 19:59:54 UTC) #45
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ca21b9b2a1ddf5ffe2a81e1d9f991ea03d89a74a
Cr-Commit-Position: refs/heads/master@{#362488}

Powered by Google App Engine
This is Rietveld 408576698