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

Issue 2797283002: Fixing std::swap(x, x) in base. (Closed)

Created:
3 years, 8 months ago by dyaroshev
Modified:
3 years, 8 months ago
Reviewers:
danakj, dcheng
CC:
chromium-reviews, vmpstr+watch_chromium.org, Alexander Yashkin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 11

Patch Set 2 : Reverting pickle's copy assignment. #

Patch Set 3 : Removing NOTREACHED from copy assignment. #

Total comments: 4

Patch Set 4 : Nits. #

Patch Set 5 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -4 lines) Patch
M base/files/file.cc View 1 chunk +0 lines, -1 line 0 comments Download
M base/files/file_unittest.cc View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M base/pickle.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M base/process/process_posix.cc View 1 chunk +0 lines, -1 line 0 comments Download
M base/values.cc View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M base/values_unittest.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (13 generated)
dyaroshev
On 2017/04/05 18:35:40, dyaroshev wrote: > mailto:dyaroshev@yandex-team.ru changed reviewers: > + mailto:danakj@chromium.org, mailto:dcheng@chromium.org Fixing std::swap(x, ...
3 years, 8 months ago (2017-04-05 18:35:59 UTC) #3
danakj
not LGTM all this does is remove dchecks but actually self-assigning would be broken. https://codereview.chromium.org/2797283002/diff/1/base/files/file.cc ...
3 years, 8 months ago (2017-04-05 19:17:40 UTC) #4
dyaroshev
On 2017/04/05 19:17:40, danakj wrote: > not LGTM > > all this does is remove ...
3 years, 8 months ago (2017-04-05 19:29:39 UTC) #5
dcheng
https://codereview.chromium.org/2797283002/diff/1/base/pickle.cc File base/pickle.cc (left): https://codereview.chromium.org/2797283002/diff/1/base/pickle.cc#oldcode311 base/pickle.cc:311: NOTREACHED(); The post condition for CopyAssignment in N4618 [1] ...
3 years, 8 months ago (2017-04-05 20:22:18 UTC) #6
danakj
Oh I get what I was missing. swap(x,x) does not self-assign with the object |x| ...
3 years, 8 months ago (2017-04-05 20:30:30 UTC) #7
danakj
https://codereview.chromium.org/2797283002/diff/1/base/process/process_posix.cc File base/process/process_posix.cc (left): https://codereview.chromium.org/2797283002/diff/1/base/process/process_posix.cc#oldcode230 base/process/process_posix.cc:230: other.Close(); On 2017/04/05 19:17:40, danakj wrote: > How does ...
3 years, 8 months ago (2017-04-05 20:33:42 UTC) #8
dyaroshev
https://codereview.chromium.org/2797283002/diff/1/base/pickle.cc File base/pickle.cc (left): https://codereview.chromium.org/2797283002/diff/1/base/pickle.cc#oldcode311 base/pickle.cc:311: NOTREACHED(); On 2017/04/05 20:22:18, dcheng wrote: > The post ...
3 years, 8 months ago (2017-04-05 20:42:47 UTC) #9
dyaroshev
On 2017/04/05 20:30:30, danakj wrote: > Oh I get what I was missing. swap(x,x) does ...
3 years, 8 months ago (2017-04-05 20:44:03 UTC) #10
dcheng
https://codereview.chromium.org/2797283002/diff/1/base/pickle.cc File base/pickle.cc (left): https://codereview.chromium.org/2797283002/diff/1/base/pickle.cc#oldcode311 base/pickle.cc:311: NOTREACHED(); On 2017/04/05 20:42:47, dyaroshev wrote: > On 2017/04/05 ...
3 years, 8 months ago (2017-04-05 20:45:49 UTC) #11
dyaroshev
https://codereview.chromium.org/2797283002/diff/1/base/pickle.cc File base/pickle.cc (left): https://codereview.chromium.org/2797283002/diff/1/base/pickle.cc#oldcode311 base/pickle.cc:311: NOTREACHED(); On 2017/04/05 20:45:49, dcheng wrote: > On 2017/04/05 ...
3 years, 8 months ago (2017-04-05 20:54:17 UTC) #12
danakj
LGTM https://codereview.chromium.org/2797283002/diff/1/base/process/process_posix.cc File base/process/process_posix.cc (left): https://codereview.chromium.org/2797283002/diff/1/base/process/process_posix.cc#oldcode230 base/process/process_posix.cc:230: other.Close(); On 2017/04/05 20:42:47, dyaroshev wrote: > On ...
3 years, 8 months ago (2017-04-05 20:59:35 UTC) #13
dcheng
LGTM with nits https://codereview.chromium.org/2797283002/diff/40001/base/files/file_unittest.cc File base/files/file_unittest.cc (right): https://codereview.chromium.org/2797283002/diff/40001/base/files/file_unittest.cc#newcode114 base/files/file_unittest.cc:114: std::swap(file, file); Slight nit: the standard ...
3 years, 8 months ago (2017-04-05 21:01:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2797283002/40001
3 years, 8 months ago (2017-04-05 21:01:38 UTC) #16
dyaroshev
https://codereview.chromium.org/2797283002/diff/40001/base/files/file_unittest.cc File base/files/file_unittest.cc (right): https://codereview.chromium.org/2797283002/diff/40001/base/files/file_unittest.cc#newcode114 base/files/file_unittest.cc:114: std::swap(file, file); On 2017/04/05 21:01:19, dcheng wrote: > Slight ...
3 years, 8 months ago (2017-04-05 21:06:49 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2797283002/60001
3 years, 8 months ago (2017-04-05 21:07:45 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/187858) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-05 21:12:43 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2797283002/60001
3 years, 8 months ago (2017-04-05 22:04:31 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/242731) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-05 22:08:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2797283002/80001
3 years, 8 months ago (2017-04-06 11:15:09 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 12:20:06 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/ed2ec7d0c475caf59f63d1b7620b...

Powered by Google App Engine
This is Rietveld 408576698