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

Issue 649533003: C++11 declares a type safe null pointer (Closed)

Created:
6 years, 2 months ago by MRV
Modified:
5 years, 5 months ago
Reviewers:
Avi (use Gerrit), nasko
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

C++11 declares a type safe null pointer This change converts from NULL to nullptr BUG=

Patch Set 1 #

Patch Set 2 : check2 #

Patch Set 3 : Fixed Presubmit errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -351 lines) Patch
M content/common/android/address_parser.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/android/gin_java_bridge_value.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/android/surface_texture_manager.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/android/surface_texture_peer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/child_process_sandbox_support_impl_linux.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M content/common/content_ipc_logging.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/cursors/webcursor.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/cursors/webcursor.cc View 1 2 4 chunks +19 lines, -16 lines 0 comments Download
M content/common/cursors/webcursor_aurawin.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M content/common/cursors/webcursor_ozone.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/font_cache_dispatcher_win.cc View 1 6 chunks +8 lines, -8 lines 0 comments Download
M content/common/font_config_ipc_linux.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M content/common/font_list_pango.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/font_list_win.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.h View 1 2 1 chunk +7 lines, -5 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 1 5 chunks +9 lines, -9 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gl_helper.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gl_helper.cc View 1 7 chunks +7 lines, -7 lines 0 comments Download
M content/common/gpu/client/gl_helper_benchmark.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M content/common/gpu/client/gl_helper_readback_support.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gl_helper_scaling.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M content/common/gpu/client/gl_helper_unittest.cc View 1 4 chunks +6 lines, -6 lines 0 comments Download
M content/common/gpu/client/gpu_channel_host.cc View 1 2 3 chunks +6 lines, -6 lines 0 comments Download
M content/common/gpu/client/gpu_in_process_context_tests.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_factory_host.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_io_surface.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_shared_memory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/client/gpu_memory_buffer_impl_surface_texture.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M content/common/gpu/client/gpu_video_encode_accelerator_host.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_video_encode_accelerator_host.cc View 1 2 5 chunks +6 lines, -6 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc View 1 6 chunks +7 lines, -7 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 6 chunks +7 lines, -7 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 5 chunks +7 lines, -6 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_android.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_io_surface.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_mac.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_ozone.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_win.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_memory_buffer_factory_x11.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/gpu_memory_manager_unittest.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_surface_lookup.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/image_transport_surface_iosurface_mac.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/image_transport_surface_iosurface_mac.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/media/android_video_encode_accelerator.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M content/common/gpu/media/dxva_video_decode_accelerator.cc View 1 2 18 chunks +28 lines, -26 lines 0 comments Download
M content/common/gpu/media/exynos_v4l2_video_device.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/h264_dpb.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/media/rendering_helper.cc View 1 8 chunks +14 lines, -14 lines 0 comments Download
M content/common/gpu/media/tegra_v4l2_video_device.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/media/v4l2_image_processor.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/v4l2_video_decode_accelerator.cc View 1 2 13 chunks +15 lines, -14 lines 0 comments Download
M content/common/gpu/media/v4l2_video_device.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/common/gpu/media/v4l2_video_encode_accelerator.cc View 1 6 chunks +6 lines, -6 lines 0 comments Download
M content/common/gpu/media/vaapi_h264_decoder.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M content/common/gpu/media/vaapi_h264_decoder_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/vaapi_video_decode_accelerator.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/media/vaapi_wrapper.cc View 1 9 chunks +10 lines, -10 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 4 chunks +5 lines, -5 lines 0 comments Download
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/gpu/media/vt_video_decode_accelerator.cc View 1 5 chunks +11 lines, -11 lines 0 comments Download
M content/common/gpu/stream_texture_android.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/host_shared_bitmap_manager_unittest.cc View 1 3 chunks +9 lines, -9 lines 0 comments Download
M content/common/input/input_param_traits.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/input/touch_event_stream_validator.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/media/media_stream_options.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/page_state_serialization.cc View 1 3 chunks +6 lines, -6 lines 0 comments Download
M content/common/page_state_serialization_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/plugin_list.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M content/common/plugin_list_unittest.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/resource_messages.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/sandbox_linux/bpf_gpu_policy_linux.cc View 1 4 chunks +6 lines, -6 lines 0 comments Download
M content/common/sandbox_linux/sandbox_linux.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/sandbox_linux/sandbox_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/sandbox_mac_unittest_helper.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/sandbox_win.cc View 1 9 chunks +13 lines, -13 lines 0 comments Download
M content/common/savable_url_schemes.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/set_process_title.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/common/set_process_title_linux.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M content/common/shareable_file_reference_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M content/common/url_schemes.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
MRV
Dear Mr. nasko We are planning to incorporate c++11 constructs in chromium. PTAL
6 years, 2 months ago (2014-10-10 10:03:46 UTC) #2
Avi (use Gerrit)
Your change description makes no sense. "[C++11 Allowed Features] Declares a type-safe null pointer converting ...
6 years, 2 months ago (2014-10-10 16:55:34 UTC) #3
MRV
On 2014/10/10 16:55:34, Avi wrote: > Your change description makes no sense. "[C++11 Allowed Features] ...
6 years, 2 months ago (2014-10-10 18:04:19 UTC) #4
Avi (use Gerrit)
On 2014/10/10 18:04:19, MRV wrote: > On 2014/10/10 16:55:34, Avi wrote: > > Your change ...
6 years, 2 months ago (2014-10-10 18:23:22 UTC) #5
MRV
On 2014/10/10 18:23:22, Avi wrote: > On 2014/10/10 18:04:19, MRV wrote: > > On 2014/10/10 ...
6 years, 2 months ago (2014-10-10 18:42:03 UTC) #6
Avi (use Gerrit)
Peter wrote up a guideline as to doing these kinds of changes: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/As26W6SbxQU
6 years, 2 months ago (2014-10-10 21:17:17 UTC) #7
MRV
On 2014/10/10 21:17:17, Avi wrote: > Peter wrote up a guideline as to doing these ...
6 years, 2 months ago (2014-10-13 12:29:40 UTC) #8
Avi (use Gerrit)
On 2014/10/13 12:29:40, MRV wrote: > On 2014/10/10 21:17:17, Avi wrote: > > Peter wrote ...
6 years, 2 months ago (2014-10-13 15:26:15 UTC) #9
MRV
6 years, 2 months ago (2014-10-13 17:57:08 UTC) #10
On 2014/10/13 15:26:15, Avi wrote:
> On 2014/10/13 12:29:40, MRV wrote:
> > On 2014/10/10 21:17:17, Avi wrote:
> > > Peter wrote up a guideline as to doing these kinds of changes:
> > >
> >
>
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/As26W6SbxQU
> > 
> > Thanks Mr. Avi, for providing the feedback and the link about the same.
> > I just want following clarification from you before going ahead for rasing
the
> > bug:
> > Just now I checked with gcc4.6 compiler, nullptr undefined error is been
seen,
> > where with clang and gcc4.8 compilation is went well without any issue.
> > I just want to know whether we need to support backward compatability to
> support
> > gcc4.6 any more, as ubuntu default version still uses gcc4.6 as default, if
> > we'll not upgrade the same.
> 
> Several weeks ago, based on the toolchains Chromium supports, the decision was
> made to allow C++11. Then, without prompting (that I'm aware of), you and your
> colleagues launched a huge push to switch from NULL to nullptr. And that was
> pretty nice of you guys, to help us with the undertaking of modernizing the
> codebase.
> 
> So it's surprising to me that _now_, in this review, that you're questioning
> whether it's a good idea or it should be done. It's a legitimate question, but
> the review in which the modernization is being made is hardly the place. This
> question belongs on chromium-dev.

Thanks Mr. Avi for appreciating for our efforts for modernizing the chromium
code.

I am sorry for raising the question now, I just want to clarify as there were
many places where this changes are been seen.
Rather than getting some mixed response later, I just want clarify the same.

I have just posted my query in the discussion thread:
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/As26W6SbxQU.

I am apologizing for asking the query at later stage.
Once we get postive reply we'll start contributing for the same.

Once Again thanks for reviewing our patches and sparing your time.

Powered by Google App Engine
This is Rietveld 408576698