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

Issue 2846843002: [blink] Unique pointers in Platform.h (Closed)

Created:
3 years, 7 months ago by altimin
Modified:
3 years, 7 months ago
Reviewers:
haraken, clamy, Nico, tdresser
CC:
chromium-reviews, shans, blink-reviews-platform-graphics_chromium.org, posciak+watch_chromium.org, chfremer+watch_chromium.org, dshwang, eae+blinkwatch, fmalita+watch_chromium.org, loading-reviews+fetch_chromium.org, kinuko+watch, emircan+watch+capturefromdom_chromium.org, rwlbuis, krit, drott+blinkwatch_chromium.org, kouhei+heap_chromium.org, toyoshim+midi_chromium.org, blink-reviews-dom_chromium.org, jam, Justin Novosad, hongchan, mcasas+capturefromelement_chromium.org, dglazkov+blink, Rik, blink-reviews-bindings_chromium.org, gavinp+loader_chromium.org, blink-reviews, darin-cc_chromium.org, loading-reviews_chromium.org, ajuma+watch_chromium.org, blink-reviews-api_chromium.org, Eric Willigers, mlamouri+watch-content_chromium.org, rjwright, Mads Ager (chromium), Peter Beverloo, sof, Raymond Toy, feature-media-reviews_chromium.org, tommyw+watchlist_chromium.org, pdr+graphicswatchlist_chromium.org, mcasas+imagecapture_chromium.org, darktears, haraken, piman+watch_chromium.org, Nate Chapin, jochen+watch_chromium.org, tyoshino+watch_chromium.org, emircan+watch+mediarecorder_chromium.org, mlamouri+watch-test-runner_chromium.org, ajuma+watch-canvas_chromium.org, blink-reviews-animation_chromium.org, dtapuska+chromiumwatch_chromium.org, oilpan-reviews, Stephen Chennney, mcasas+mediarecorder_chromium.org, einbinder+watch-test-runner_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[blink] Unique pointers in Platform.h Make Platform::*Create methods return a unique_ptr instead of a raw pointer to explictly state ownership logic. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2846843002 Cr-Original-Original-Commit-Position: refs/heads/master@{#467710} Committed: https://chromium.googlesource.com/chromium/src/+/d548cc04b6568f8edc08853940134707fcd6c455 Review-Url: https://codereview.chromium.org/2846843002 Cr-Original-Commit-Position: refs/heads/master@{#468697} Committed: https://chromium.googlesource.com/chromium/src/+/bd3351963fb4da3e31478d841b91a117583f9786 Review-Url: https://codereview.chromium.org/2846843002 Cr-Commit-Position: refs/heads/master@{#468969} Committed: https://chromium.googlesource.com/chromium/src/+/eb6bd1966e3d4605bb8cc911764889ebf0597129

Patch Set 1 #

Patch Set 2 : fix content_shell compilation #

Total comments: 12

Patch Set 3 : addressed comments & fixed compilation (again) #

Patch Set 4 : addressed clamy@'s comments #

Patch Set 5 : fix compilation #

Patch Set 6 : fix compilation on android (maybe) #

Patch Set 7 : fix compilation (again) #

Patch Set 8 : fix compilation (and again) #

Patch Set 9 : \ #

Patch Set 10 : fix compilation (and again) #

Patch Set 11 : fix compilation (and again) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+445 lines, -387 lines) Patch
M chrome/renderer/chrome_content_renderer_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/tts_dispatcher.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/child/blink_platform_impl.h View 3 chunks +4 lines, -4 lines 0 comments Download
M content/child/blink_platform_impl.cc View 1 2 3 4 5 6 5 chunks +15 lines, -13 lines 0 comments Download
M content/ppapi_plugin/ppapi_blink_platform_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/ppapi_plugin/ppapi_blink_platform_impl.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M content/public/renderer/content_renderer_client.h View 2 chunks +7 lines, -7 lines 0 comments Download
M content/public/renderer/content_renderer_client.cc View 3 chunks +12 lines, -5 lines 0 comments Download
M content/renderer/input/input_handler_wrapper.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_handler_wrapper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/renderer_webaudiodevice_impl.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/media/webrtc/peer_connection_dependency_factory.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media_capture_from_element/canvas_capture_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media_capture_from_element/canvas_capture_handler.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/media_capture_from_element/canvas_capture_handler_unittest.cc View 1 chunk +4 lines, -5 lines 0 comments Download
M content/renderer/render_thread_impl.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -4 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +11 lines, -11 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 4 5 6 6 chunks +19 lines, -13 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 17 chunks +42 lines, -32 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.h View 1 chunk +6 lines, -4 lines 0 comments Download
M content/shell/renderer/layout_test/layout_test_content_renderer_client.cc View 1 5 chunks +9 lines, -6 lines 0 comments Download
M content/shell/test_runner/test_plugin.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/shell/test_runner/web_test_interfaces.h View 1 1 chunk +7 lines, -5 lines 0 comments Download
M content/shell/test_runner/web_test_interfaces.cc View 1 2 chunks +13 lines, -10 lines 0 comments Download
M content/test/test_blink_web_unit_test_support.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/test/test_blink_web_unit_test_support.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamerThread.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/SecurityContext.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/CacheStorage.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/GlobalCacheStorage.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/AnimationWorkletThreadTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThreadTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/media_capabilities/MediaCapabilities.cpp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediacapturefromelement/HTMLCanvasElementCapture.cpp View 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp View 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/storage/StorageNamespace.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioContextTest.cpp View 3 chunks +10 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContextTest.cpp View 2 chunks +10 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccessor.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/WebThreadSupportingGC.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/AudioDestination.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/PushPullFIFOMultithreadTest.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/ReverbConvolver.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/Platform.cpp View 2 chunks +98 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridge.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/Canvas2DLayerBridgeTest.cpp View 14 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/DeferredImageDecoderTest.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/ImageFrameGeneratorTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/SharedContextRateLimiter.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/gpu/SharedGpuContext.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapTest.cpp View 6 chunks +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/loader/fetch/ResourceResponseTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/mediastream/MediaStreamCenter.cpp View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/speech/PlatformSpeechSynthesizer.cpp View 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/SpinLockTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 4 5 6 12 chunks +29 lines, -55 lines 0 comments Download
D third_party/WebKit/public/platform/WebFlingAnimator.h View 1 chunk +0 lines, -49 lines 0 comments Download
M ui/events/blink/input_handler_proxy.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M ui/events/blink/input_handler_proxy_client.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/blink/input_handler_proxy_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 81 (60 generated)
altimin
PTAL +haraken@ for blink +clamy@ for content +tdresser for ui
3 years, 7 months ago (2017-04-27 10:30:12 UTC) #3
altimin
And +thakis@ for chrome/
3 years, 7 months ago (2017-04-27 10:33:32 UTC) #5
haraken
WebKit LGTM https://codereview.chromium.org/2846843002/diff/20001/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp File third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp (right): https://codereview.chromium.org/2846843002/diff/20001/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp#newcode103 third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp:103: return base::MakeUnique<MockWebRTCPeerConnectionHandler>(); WTF::MakeUnique ? https://codereview.chromium.org/2846843002/diff/20001/third_party/WebKit/public/platform/WebFlingAnimator.h File third_party/WebKit/public/platform/WebFlingAnimator.h ...
3 years, 7 months ago (2017-04-27 11:45:59 UTC) #14
tdresser
ui LGTM
3 years, 7 months ago (2017-04-27 11:52:22 UTC) #15
altimin
https://codereview.chromium.org/2846843002/diff/20001/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp File third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp (right): https://codereview.chromium.org/2846843002/diff/20001/third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp#newcode103 third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp:103: return base::MakeUnique<MockWebRTCPeerConnectionHandler>(); On 2017/04/27 11:45:59, haraken wrote: > > ...
3 years, 7 months ago (2017-04-27 11:57:08 UTC) #18
clamy
Thanks! I'm mostly happy with the code, a few comments below. https://codereview.chromium.org/2846843002/diff/20001/content/ppapi_plugin/ppapi_blink_platform_impl.cc File content/ppapi_plugin/ppapi_blink_platform_impl.cc (right): ...
3 years, 7 months ago (2017-04-27 12:00:18 UTC) #19
altimin
https://codereview.chromium.org/2846843002/diff/20001/content/ppapi_plugin/ppapi_blink_platform_impl.cc File content/ppapi_plugin/ppapi_blink_platform_impl.cc (right): https://codereview.chromium.org/2846843002/diff/20001/content/ppapi_plugin/ppapi_blink_platform_impl.cc#newcode229 content/ppapi_plugin/ppapi_blink_platform_impl.cc:229: return 0; On 2017/04/27 12:00:18, clamy wrote: > I'd ...
3 years, 7 months ago (2017-04-27 12:06:30 UTC) #20
clamy
Thanks! content/ lgtm. https://codereview.chromium.org/2846843002/diff/20001/content/renderer/media/renderer_webaudiodevice_impl.cc File content/renderer/media/renderer_webaudiodevice_impl.cc (right): https://codereview.chromium.org/2846843002/diff/20001/content/renderer/media/renderer_webaudiodevice_impl.cc#newcode114 content/renderer/media/renderer_webaudiodevice_impl.cc:114: return std::unique_ptr<RendererWebAudioDeviceImpl>( On 2017/04/27 12:06:30, altimin ...
3 years, 7 months ago (2017-04-27 12:12:49 UTC) #23
Nico
chrome/ lgtm
3 years, 7 months ago (2017-04-27 14:23:01 UTC) #28
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/2846843002/100001
3 years, 7 months ago (2017-04-27 16:41:29 UTC) #35
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/d548cc04b6568f8edc08853940134707fcd6c455
3 years, 7 months ago (2017-04-27 16:52:26 UTC) #38
altimin
A revert of this CL (patchset #6 id:100001) has been created in https://codereview.chromium.org/2850593002/ by altimin@chromium.org. ...
3 years, 7 months ago (2017-04-27 17:39:11 UTC) #39
findit-for-me
Findit(https://goo.gl/kROfz5) confirmed this CL at revision 467710 as the culprit for failures in the build ...
3 years, 7 months ago (2017-04-27 17:48:28 UTC) #40
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/2846843002/140001
3 years, 7 months ago (2017-05-02 17:17:56 UTC) #52
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/bd3351963fb4da3e31478d841b91a117583f9786
3 years, 7 months ago (2017-05-02 17:28:55 UTC) #55
altimin
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/2859553002/ by altimin@chromium.org. ...
3 years, 7 months ago (2017-05-02 18:06:32 UTC) #56
findit-for-me
Findit (https://goo.gl/kROfz5) confirmed this CL at revision 468697 as the culprit for failures in the ...
3 years, 7 months ago (2017-05-02 18:12:31 UTC) #57
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/2846843002/180001
3 years, 7 months ago (2017-05-03 10:49:01 UTC) #65
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/426186)
3 years, 7 months ago (2017-05-03 10:57:33 UTC) #67
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/2846843002/200001
3 years, 7 months ago (2017-05-03 14:42:17 UTC) #78
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 14:52:59 UTC) #81
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/eb6bd1966e3d4605bb8cc9117648...

Powered by Google App Engine
This is Rietveld 408576698