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

Issue 1763983002: Change scoped_ptr to a type alias for std::unique_ptr on OS_WIN (Closed)

Created:
4 years, 9 months ago by dcheng
Modified:
4 years, 9 months ago
CC:
Anand Mistry (off Chromium), chromium-reviews, chromoting-reviews_chromium.org, gavinp+memory_chromium.org, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change scoped_ptr to a type alias for std::unique_ptr on OS_WIN This also removes the infinite recursion part of the ReferenceCycle test. While it's nice not to crash like this, [unique.ptr.single.dtor] doesn't actually require ~unique_ptr to reset the stored pointer to nullptr on destruction. Thus, infinite recursion, while not useful, is allowed per the spec. BUG=554298, 579269 Committed: https://crrev.com/9fd4ab64bd402859ccea0c5213b0a478f9d6ae5a Cr-Commit-Position: refs/heads/master@{#379962}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Delete problematic test. #

Patch Set 3 : git add -p fail #

Patch Set 4 : Fix bluetooth #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -14 lines) Patch
M base/memory/scoped_ptr.h View 1 chunk +1 line, -1 line 0 comments Download
M base/memory/scoped_ptr_unittest.cc View 1 2 1 chunk +0 lines, -10 lines 0 comments Download
M device/bluetooth/bluetooth_remote_gatt_service_win.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M printing/backend/printing_info_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/input_injector_win.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 36 (16 generated)
dcheng
+danakj for //base +vitalybuka for //printing +joedow for //remoting
4 years, 9 months ago (2016-03-04 02:17:04 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763983002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763983002/1
4 years, 9 months ago (2016-03-04 02:17:32 UTC) #4
dcheng
On 2016/03/04 at 02:17:32, commit-bot wrote: > Dry run: CQ is trying da patch. Follow ...
4 years, 9 months ago (2016-03-04 04:20:53 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/177840)
4 years, 9 months ago (2016-03-04 04:34:07 UTC) #7
Vitaly Buka (NO REVIEWS)
lgtm https://codereview.chromium.org/1763983002/diff/1/printing/backend/printing_info_win.h File printing/backend/printing_info_win.h (right): https://codereview.chromium.org/1763983002/diff/1/printing/backend/printing_info_win.h#newcode29 printing/backend/printing_info_win.h:29: return buffer_ != nullptr; is any warning without ...
4 years, 9 months ago (2016-03-04 18:25:17 UTC) #8
dcheng
https://codereview.chromium.org/1763983002/diff/1/printing/backend/printing_info_win.h File printing/backend/printing_info_win.h (right): https://codereview.chromium.org/1763983002/diff/1/printing/backend/printing_info_win.h#newcode29 printing/backend/printing_info_win.h:29: return buffer_ != nullptr; On 2016/03/04 at 18:25:17, Vitaly ...
4 years, 9 months ago (2016-03-04 18:28:59 UTC) #9
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/1763983002/diff/1/printing/backend/printing_info_win.h File printing/backend/printing_info_win.h (right): https://codereview.chromium.org/1763983002/diff/1/printing/backend/printing_info_win.h#newcode29 printing/backend/printing_info_win.h:29: return buffer_ != nullptr; Thanks. I like !! too, ...
4 years, 9 months ago (2016-03-04 18:34:39 UTC) #10
joedow
lgtm for remoting. https://codereview.chromium.org/1763983002/diff/1/printing/backend/printing_info_win.h File printing/backend/printing_info_win.h (right): https://codereview.chromium.org/1763983002/diff/1/printing/backend/printing_info_win.h#newcode29 printing/backend/printing_info_win.h:29: return buffer_ != nullptr; On 2016/03/04 ...
4 years, 9 months ago (2016-03-04 20:46:20 UTC) #11
dcheng
So it turns out the ReferenceCycle test that we don't infinitely recurse in the destructor ...
4 years, 9 months ago (2016-03-04 23:52:21 UTC) #12
danakj
On 2016/03/04 23:52:21, dcheng wrote: > So it turns out the ReferenceCycle test that we ...
4 years, 9 months ago (2016-03-04 23:57:14 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763983002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763983002/40001
4 years, 9 months ago (2016-03-05 00:06:13 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/178347)
4 years, 9 months ago (2016-03-05 01:38:42 UTC) #22
dcheng
+keybuk, mind taking a look? This fixes a test failure in BluetoothGattServiceTest.GetCharacteristic_CharacteristicRemoved when using unique_ptr: ...
4 years, 9 months ago (2016-03-08 19:55:26 UTC) #23
dcheng
Also +scheib, who reviewed the patch (https://codereview.chromium.org/1690133002) that added this test.
4 years, 9 months ago (2016-03-08 20:58:54 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763983002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763983002/60001
4 years, 9 months ago (2016-03-08 20:59:27 UTC) #27
scheib
LGTM
4 years, 9 months ago (2016-03-08 22:32:59 UTC) #28
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 23:09:47 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1763983002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1763983002/60001
4 years, 9 months ago (2016-03-08 23:11:05 UTC) #33
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 9 months ago (2016-03-08 23:17:37 UTC) #34
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 23:24:27 UTC) #36
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9fd4ab64bd402859ccea0c5213b0a478f9d6ae5a
Cr-Commit-Position: refs/heads/master@{#379962}

Powered by Google App Engine
This is Rietveld 408576698