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

Issue 1407443002: Remove old C++03 move emulation code. (Closed)

Created:
5 years, 2 months ago by dcheng
Modified:
5 years ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, chromoting-reviews_chromium.org, darin-cc_chromium.org, gavinp+memory_chromium.org, groby+spellwatch_chromium.org, jam, rlp+watch_chromium.org, rouslan+spell_chromium.org, spang, Lei Zhang, tommycli, vmpstr
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove old C++03 move emulation code. Chrome allows the use of C++11 features now, so just use rvalue references directly. BUG=543901 Committed: https://crrev.com/e1b0277c20198c31b8782f567634552243182d08 Cr-Commit-Position: refs/heads/master@{#362394}

Patch Set 1 #

Patch Set 2 : Hail Mary fix for Windows/Android #

Patch Set 3 : More Hail Marys #

Patch Set 4 : . #

Total comments: 35

Patch Set 5 : Address danakj@ comments #

Patch Set 6 : Address remaining danakj comments #

Patch Set 7 : rebase #

Patch Set 8 : Rebased #

Patch Set 9 : Rebased (and probably still working) #

Patch Set 10 : Rebase #

Total comments: 5

Patch Set 11 : rebase #

Patch Set 12 : std::move and reflow #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -347 lines) Patch
M base/files/file.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -5 lines 0 comments Download
M base/files/file.cc View 2 chunks +14 lines, -16 lines 0 comments Download
M base/memory/scoped_vector.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -4 lines 0 comments Download
M base/move.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +19 lines, -184 lines 0 comments Download
M base/process/process.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -5 lines 0 comments Download
M base/process/process_posix.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -8 lines 0 comments Download
M base/process/process_win.cc View 1 chunk +9 lines, -10 lines 0 comments Download
M base/win/scoped_handle.h View 1 2 3 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/printing/pdf_to_emf_converter.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -9 lines 0 comments Download
M chrome/common/media_galleries/picasa_types.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/common/media_galleries/picasa_types.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +19 lines, -20 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -3 lines 0 comments Download
M content/child/scoped_web_callbacks.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +7 lines, -5 lines 0 comments Download
M dbus/file_descriptor.h View 2 chunks +3 lines, -5 lines 0 comments Download
M dbus/file_descriptor.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M net/base/file_stream_context.h View 1 chunk +3 lines, -4 lines 0 comments Download
M net/base/file_stream_context.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +7 lines, -9 lines 0 comments Download
M remoting/base/typed_buffer.h View 1 2 3 4 4 chunks +6 lines, -14 lines 0 comments Download
M storage/browser/blob/scoped_file.h View 2 chunks +4 lines, -7 lines 0 comments Download
M storage/browser/blob/scoped_file.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/gl/android/scoped_java_surface.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gl/android/scoped_java_surface.cc View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 45 (9 generated)
dcheng
The overall CL is pretty straightforward, but I added a couple notes that I'd love ...
5 years, 2 months ago (2015-10-13 21:03:09 UTC) #2
dcheng
https://codereview.chromium.org/1407443002/diff/60001/remoting/base/typed_buffer.h File remoting/base/typed_buffer.h (left): https://codereview.chromium.org/1407443002/diff/60001/remoting/base/typed_buffer.h#oldcode37 remoting/base/typed_buffer.h:37: TypedBuffer temp; On 2015/10/13 at 21:03:09, dcheng wrote: > ...
5 years, 2 months ago (2015-10-13 21:03:39 UTC) #3
dcheng
ping =)
5 years, 2 months ago (2015-10-15 21:22:28 UTC) #4
danakj
oops. reviewing. On Thu, Oct 15, 2015 at 2:22 PM, <dcheng@chromium.org> wrote: > ping =) ...
5 years, 2 months ago (2015-10-15 22:14:54 UTC) #5
danakj
LGTM with some comments around DCHECKing mostly. https://codereview.chromium.org/1407443002/diff/60001/base/files/file.cc File base/files/file.cc (right): https://codereview.chromium.org/1407443002/diff/60001/base/files/file.cc#newcode76 base/files/file.cc:76: Close(); This ...
5 years, 2 months ago (2015-10-15 23:35:06 UTC) #6
danakj
Shall we make a bug for getting rid of the move emulation macros etc entirely ...
5 years, 2 months ago (2015-10-15 23:37:06 UTC) #7
dcheng
+thakis because C++11 library support managed to creep into this review (pdf_to_emf_converter.cc) https://codereview.chromium.org/1407443002/diff/60001/base/files/file.cc File base/files/file.cc ...
5 years, 2 months ago (2015-10-16 00:40:01 UTC) #9
danakj
https://codereview.chromium.org/1407443002/diff/60001/base/files/file.cc File base/files/file.cc (right): https://codereview.chromium.org/1407443002/diff/60001/base/files/file.cc#newcode78 base/files/file.cc:78: tracing_path_ = other.tracing_path_; On 2015/10/16 00:40:01, dcheng wrote: > ...
5 years, 2 months ago (2015-10-16 00:44:24 UTC) #10
dcheng
My brain is tired so I'll address the remaining comments tomorrow. https://codereview.chromium.org/1407443002/diff/60001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): ...
5 years, 2 months ago (2015-10-16 01:30:30 UTC) #11
Nico
On Thu, Oct 15, 2015 at 6:30 PM, <dcheng@chromium.org> wrote: > My brain is tired ...
5 years, 2 months ago (2015-10-16 04:06:46 UTC) #12
Nico
Can we wait with doing this until we have library support? Also, keeping a macro ...
5 years, 2 months ago (2015-10-16 04:29:18 UTC) #13
dcheng
On 2015/10/16 at 04:29:18, thakis wrote: > Can we wait with doing this until we ...
5 years, 2 months ago (2015-10-16 05:03:51 UTC) #14
danakj
On Thu, Oct 15, 2015 at 10:03 PM, <dcheng@chromium.org> wrote: > On 2015/10/16 at 04:29:18, ...
5 years, 2 months ago (2015-10-16 18:36:28 UTC) #15
dcheng
https://codereview.chromium.org/1407443002/diff/60001/chrome/browser/printing/pdf_to_emf_converter.cc File chrome/browser/printing/pdf_to_emf_converter.cc (right): https://codereview.chromium.org/1407443002/diff/60001/chrome/browser/printing/pdf_to_emf_converter.cc#newcode123 chrome/browser/printing/pdf_to_emf_converter.cc:123: // Move constructor for STL. On 2015/10/15 at 23:35:06, ...
5 years, 2 months ago (2015-10-19 21:29:50 UTC) #16
danakj
LGTM % thakis https://codereview.chromium.org/1407443002/diff/60001/base/move.h File base/move.h (right): https://codereview.chromium.org/1407443002/diff/60001/base/move.h#newcode53 base/move.h:53: // If you include a move-only ...
5 years, 2 months ago (2015-10-19 21:49:24 UTC) #17
Nico
let's please wait with this, as requested above
5 years, 2 months ago (2015-10-19 21:50:56 UTC) #18
dcheng
On 2015/10/19 at 21:50:56, thakis wrote: > let's please wait with this, as requested above ...
5 years, 2 months ago (2015-10-19 23:02:00 UTC) #19
Nico
On 2015/10/19 23:02:00, dcheng wrote: > On 2015/10/19 at 21:50:56, thakis wrote: > > let's ...
5 years, 2 months ago (2015-10-19 23:08:56 UTC) #20
dcheng
Given https://codereview.chromium.org/1433013004, is this something we can reconsider landing now?
5 years, 1 month ago (2015-11-11 01:53:47 UTC) #21
Nico
Please wait until library features are ready, as said above. As you can see, that's ...
5 years, 1 month ago (2015-11-11 01:59:47 UTC) #22
Vitaly Buka (NO REVIEWS)
LGTM chrome/browser/printing/pdf_to_emf_converter.cc
5 years, 1 month ago (2015-11-17 01:37:22 UTC) #24
dcheng
Now that std::move() is allowed, can I go ahead? =)
5 years, 1 month ago (2015-11-19 00:24:57 UTC) #25
danakj
On Wed, Nov 18, 2015 at 4:24 PM, <dcheng@chromium.org> wrote: > Now that std::move() is ...
5 years, 1 month ago (2015-11-19 00:29:41 UTC) #26
dcheng
On 2015/11/19 at 00:29:41, danakj wrote: > On Wed, Nov 18, 2015 at 4:24 PM, ...
5 years, 1 month ago (2015-11-19 00:31:40 UTC) #27
Nico
alright, let's do this. Once this is in, I suppose we can soon allow move ...
5 years ago (2015-11-26 03:06:10 UTC) #28
dcheng
https://codereview.chromium.org/1407443002/diff/180001/base/move.h File base/move.h (right): https://codereview.chromium.org/1407443002/diff/180001/base/move.h#newcode33 base/move.h:33: // MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type); On 2015/11/26 at 03:06:10, Nico wrote: > ...
5 years ago (2015-11-26 03:10:41 UTC) #29
Nico
https://codereview.chromium.org/1407443002/diff/180001/base/move.h File base/move.h (right): https://codereview.chromium.org/1407443002/diff/180001/base/move.h#newcode33 base/move.h:33: // MOVE_ONLY_TYPE_WITH_MOVE_CONSTRUCTOR_FOR_CPP_03(type); On 2015/11/26 03:10:41, dcheng wrote: > On ...
5 years ago (2015-11-26 03:21:44 UTC) #30
dcheng
On 2015/11/26 at 03:21:44, thakis wrote: > https://codereview.chromium.org/1407443002/diff/180001/base/move.h > File base/move.h (right): > > https://codereview.chromium.org/1407443002/diff/180001/base/move.h#newcode33 ...
5 years ago (2015-11-26 03:41:13 UTC) #31
dcheng
+brettw for global OWNERS approval
5 years ago (2015-11-30 18:18:46 UTC) #36
danakj
On Wed, Nov 25, 2015 at 7:41 PM, <dcheng@chromium.org> wrote: > On 2015/11/26 at 03:21:44, ...
5 years ago (2015-11-30 18:33:51 UTC) #37
dcheng
On 2015/11/30 at 18:33:51, danakj wrote: > On Wed, Nov 25, 2015 at 7:41 PM, ...
5 years ago (2015-11-30 18:34:50 UTC) #38
danakj
On Mon, Nov 30, 2015 at 10:34 AM, <dcheng@chromium.org> wrote: > On 2015/11/30 at 18:33:51, ...
5 years ago (2015-11-30 18:45:55 UTC) #39
brettw
rs lgtm
5 years ago (2015-12-01 06:34:16 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1407443002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1407443002/220001
5 years ago (2015-12-01 08:44:35 UTC) #42
commit-bot: I haz the power
Committed patchset #12 (id:220001)
5 years ago (2015-12-01 12:09:59 UTC) #43
commit-bot: I haz the power
5 years ago (2015-12-01 12:10:51 UTC) #45
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/e1b0277c20198c31b8782f567634552243182d08
Cr-Commit-Position: refs/heads/master@{#362394}

Powered by Google App Engine
This is Rietveld 408576698