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

Issue 1316363005: Consolidate constructormagic macros with Chromium version and remove Chromium override. (Closed)

Created:
5 years, 3 months ago by Henrik Grunell WebRTC
Modified:
5 years, 3 months ago
Reviewers:
tommi, Andrew MacDonald
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Consolidate constructormagic macros with Chromium version and remove Chromium override. Part of work removing dependency on Chromium's base. Only adds "= delete". From https://codereview.chromium.org/1151443003 : "This will guarantee the error to be at compile time, and not rely on the call visibility (private)." In consequence of that change, fixed an illegal copy and removed a bunch of unused variables. BUG=chromium:468375 (in particular comment #37) NOTRY=true Committed: https://crrev.com/0de8ff488d92e0bc6b7b65662898ff5e955cda93 Cr-Commit-Position: refs/heads/master@{#9913}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Code review. Removed unused variables in various files. #

Patch Set 3 : Removed more unused variables. #

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -48 lines) Patch
M talk/app/webrtc/videosource.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M webrtc/base/constructormagic.h View 1 1 chunk +12 lines, -12 lines 0 comments Download
M webrtc/base/logging.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/base/natserver.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/base/virtualsocketserver.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/base/virtualsocketserver.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.h View 1 2 chunks +0 lines, -3 lines 0 comments Download
M webrtc/modules/remote_bitrate_estimator/test/bwe_test_framework.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_format_h264.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M webrtc/modules/rtp_rtcp/source/rtp_format_h264.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/video_coding/main/test/test_util.h View 1 1 chunk +0 lines, -1 line 0 comments Download
D webrtc/overrides/webrtc/base/constructormagic.h View 1 chunk +0 lines, -20 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
Henrik Grunell WebRTC
5 years, 3 months ago (2015-09-07 11:09:56 UTC) #2
tommi
lgtm feel free to ignore the question below. https://codereview.webrtc.org/1316363005/diff/1/webrtc/base/constructormagic.h File webrtc/base/constructormagic.h (right): https://codereview.webrtc.org/1316363005/diff/1/webrtc/base/constructormagic.h#newcode20 webrtc/base/constructormagic.h:20: void ...
5 years, 3 months ago (2015-09-07 11:15:27 UTC) #3
Henrik Grunell WebRTC
https://codereview.webrtc.org/1316363005/diff/1/webrtc/base/constructormagic.h File webrtc/base/constructormagic.h (right): https://codereview.webrtc.org/1316363005/diff/1/webrtc/base/constructormagic.h#newcode20 webrtc/base/constructormagic.h:20: void operator=(const TypeName&) = delete On 2015/09/07 11:15:27, tommi ...
5 years, 3 months ago (2015-09-07 11:56:40 UTC) #4
Andrew MacDonald
lgtm assuming you agree with fixing DISALLOW_COPY_AND_ASSIGN. https://codereview.webrtc.org/1316363005/diff/1/webrtc/base/constructormagic.h File webrtc/base/constructormagic.h (right): https://codereview.webrtc.org/1316363005/diff/1/webrtc/base/constructormagic.h#newcode25 webrtc/base/constructormagic.h:25: #define DISALLOW_COPY_AND_ASSIGN(TypeName) ...
5 years, 3 months ago (2015-09-07 22:45:37 UTC) #5
Henrik Grunell WebRTC
Also fixed a copy and removed some unused variables. All found thanks to the update. ...
5 years, 3 months ago (2015-09-08 11:41:09 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316363005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316363005/20001
5 years, 3 months ago (2015-09-08 11:41:24 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_x64 on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_x64/builds/3174)
5 years, 3 months ago (2015-09-08 11:48:02 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316363005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316363005/40001
5 years, 3 months ago (2015-09-08 12:10:21 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android on tryserver.webrtc (JOB_TIMED_OUT, no build URL) android_arm64_rel on ...
5 years, 3 months ago (2015-09-08 14:10:39 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316363005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316363005/60001
5 years, 3 months ago (2015-09-09 15:51:30 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: mac_baremetal on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 3 months ago (2015-09-09 17:51:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316363005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316363005/60001
5 years, 3 months ago (2015-09-10 04:31:52 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_baremetal on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/mac_baremetal/builds/7279)
5 years, 3 months ago (2015-09-10 05:28:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1316363005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1316363005/60001
5 years, 3 months ago (2015-09-10 06:42:45 UTC) #27
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 3 months ago (2015-09-10 06:43:45 UTC) #28
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/0de8ff488d92e0bc6b7b65662898ff5e955cda93 Cr-Commit-Position: refs/heads/master@{#9913}
5 years, 3 months ago (2015-09-10 06:43:59 UTC) #29
tommi
5 years, 3 months ago (2015-09-10 08:41:39 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:60001) has been created in
https://codereview.webrtc.org/1330283002/ by tommi@webrtc.org.

The reason for reverting is: Had to revert since FYI bots stopped compiling. 
Example failure:

[94/9470] CXX
obj\third_party\webrtc\modules\video_processing\main\source\video_processing_sse2.content_analysis_sse2.obj
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
/showIncludes /FC
@obj\third_party\webrtc\modules\video_coding\codecs\h264\webrtc_h264.h264.obj.rsp
/c ..\..\third_party\webrtc\modules\video_coding\codecs\h264\h264.cc
/Foobj\third_party\webrtc\modules\video_coding\codecs\h264\webrtc_h264.h264.obj
/Fdobj\third_party\webrtc\modules\webrtc_h264.cc.pdb 
e:\b\build\slave\win\build\src\base\macros.h(28) : error C2220: warning treated
as error - no 'object' file generated
e:\b\build\slave\win\build\src\base\macros.h(28) : warning C4005:
'DISALLOW_COPY_AND_ASSIGN' : macro redefinition
       
e:\b\build\slave\win\build\src\third_party\webrtc\base\constructormagic.h(27) :
see previous definition of 'DISALLOW_COPY_AND_ASSIGN'
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
/showIncludes /FC
@obj\third_party\webrtc\base\rtc_base_approved.bitbuffer.obj.rsp /c
..\..\third_party\webrtc\base\bitbuffer.cc
/Foobj\third_party\webrtc\base\rtc_base_approved.bitbuffer.obj
/Fdobj\third_party\webrtc\base\rtc_base_approved.cc.pdb 
e:\b\build\slave\win\build\src\base\macros.h(28) : error C2220: warning treated
as error - no 'object' file generated
e:\b\build\slave\win\build\src\base\macros.h(28) : warning C4005:
'DISALLOW_COPY_AND_ASSIGN' : macro redefinition
       
e:\b\build\slave\win\build\src\third_party\webrtc\base\constructormagic.h(27) :
see previous definition of 'DISALLOW_COPY_AND_ASSIGN'
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
/showIncludes /FC
@obj\third_party\webrtc\modules\audio_processing\logging\audio_processing.aec_logging_file_handling.obj.rsp
/c
..\..\third_party\webrtc\modules\audio_processing\logging\aec_logging_file_handling.cc
/Foobj\third_party\webrtc\modules\audio_processing\logging\audio_processing.aec_logging_file_handling.obj
/Fdobj\third_party\webrtc\modules\audio_processing.cc.pdb 
e:\b\build\slave\win\build\src\base\macros.h(28) : error C2220: warning treated
as error - no 'object' file generated
e:\b\build\slave\win\build\src\base\macros.h(28) : warning C4005:
'DISALLOW_COPY_AND_ASSIGN' : macro redefinition
       
e:\b\build\slave\win\build\src\third_party\webrtc\base\constructormagic.h(27) :
see previous definition of 'DISALLOW_COPY_AND_ASSIGN'
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
/showIncludes /FC
@obj\third_party\webrtc\modules\audio_processing\beamformer\audio_processing.nonlinear_beamformer.obj.rsp
/c
..\..\third_party\webrtc\modules\audio_processing\beamformer\nonlinear_beamformer.cc
/Foobj\third_party\webrtc\modules\audio_processing\beamformer\audio_processing.nonlinear_beamformer.obj
/Fdobj\third_party\webrtc\modules\audio_processing.cc.pdb 
e:\b\build\slave\win\build\src\base\macros.h(28) : error C2220: warning treated
as error - no 'object' file generated
e:\b\build\slave\win\build\src\base\macros.h(28) : warning C4005:
'DISALLOW_COPY_AND_ASSIGN' : macro redefinition
       
e:\b\build\slave\win\build\src\third_party\webrtc\base\constructormagic.h(27) :
see previous definition of 'DISALLOW_COPY_AND_ASSIGN'.

Powered by Google App Engine
This is Rietveld 408576698