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

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (Closed)

Created:
4 years, 8 months ago by dcheng
Modified:
4 years, 8 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, blink-reviews-bindings_chromium.org, blink-reviews-wtf_chromium.org, blink-worker-reviews_chromium.org, chasej+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, falken, feature-media-reviews_chromium.org, gcasto+watchlist_chromium.org, harkness+watch_chromium.org, horo+watch_chromium.org, iclelland+watch_chromium.org, jam, jkarlin+watch_chromium.org, jochen+watch_chromium.org, johnme+watch_chromium.org, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, mcasas+watch_chromium.org, michaeln, Mikhail, mkwst+watchlist-passwords_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-test-runner_chromium.org, mlamouri+watch-blink_chromium.org, mvanouwerkerk+watch_chromium.org, nhiroki, ortuno+watch_chromium.org, Peter Beverloo, posciak+watch_chromium.org, scheduler-bugs_chromium.org, scheib+watch_chromium.org, serviceworker-reviews, tommyw+watchlist_chromium.org, tzik, vabr+watchlistpasswordmanager_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. BUG=none R=esprehn@chromium.org,haraken@chromium.org Committed: https://crrev.com/e0d99834d5d8f817c55828c1f53b4d0946b2d6df Cr-Commit-Position: refs/heads/master@{#385784}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Address comment and fix Android IWYU fail #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -321 lines) Patch
M components/password_manager/content/renderer/credential_manager_client.cc View 4 chunks +5 lines, -3 lines 0 comments Download
M components/password_manager/content/renderer/credential_manager_client_browsertest.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M components/scheduler/child/web_scheduler_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/child/web_scheduler_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/renderer/renderer_web_scheduler_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/renderer/renderer_web_scheduler_impl.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M components/scheduler/renderer/web_view_scheduler_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M components/scheduler/renderer/web_view_scheduler_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M components/scheduler/renderer/web_view_scheduler_impl_unittest.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M components/test_runner/mock_credential_manager_client.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/child/background_sync/background_sync_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/permissions/permission_dispatcher.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/child/push_messaging/push_provider.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher_unittest.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M content/child/service_worker/web_service_worker_impl.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M content/child/service_worker/web_service_worker_impl.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/child/service_worker/web_service_worker_registration_impl.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/bluetooth/bluetooth_dispatcher.cc View 6 chunks +12 lines, -8 lines 0 comments Download
M content/renderer/cache_storage/cache_storage_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/rtc_certificate.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/rtc_certificate.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/rtc_certificate_generator.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/rtc_certificate_generator.cc View 5 chunks +14 lines, -10 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 2 chunks +2 lines, -1 line 0 comments Download
M content/renderer/push_messaging/push_messaging_dispatcher.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 6 chunks +5 lines, -5 lines 0 comments Download
M content/renderer/usb/web_usb_client_impl.cc View 7 chunks +12 lines, -9 lines 0 comments Download
M content/renderer/usb/web_usb_device_impl.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/CallbackPromiseAdapter.h View 4 chunks +7 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncCallbacks.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/background_sync/SyncCallbacks.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/Cache.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/CacheStorage.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp View 5 chunks +4 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/credentialmanager/CredentialsContainer.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/installedapp/InstalledAppController.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/installedapp/InstalledAppController.cpp View 3 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/installedapp/NavigatorInstalledApp.cpp View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCCertificate.h View 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCCertificate.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/RTCPeerConnection.cpp View 4 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/permissions/PermissionsCallback.h View 3 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/permissions/PermissionsCallback.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationConnectionCallbacks.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushSubscriptionCallbacks.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/push_messaging/PushSubscriptionCallbacks.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClients.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 5 chunks +12 lines, -12 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerLinkResource.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClientCallback.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerWindowClientCallback.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USB.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webusb/USB.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/TimerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/mediastream/RTCConfiguration.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/weburl_loader_mock_factory_impl.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 4 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/wtf/PtrUtil.h View 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/wtf.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/WebCallbacks.h View 1 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebCredentialManagerClient.h View 2 chunks +3 lines, -2 lines 0 comments Download
D third_party/WebKit/public/platform/WebPassOwnPtr.h View 1 2 1 chunk +0 lines, -78 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCCertificate.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebRTCCertificateGenerator.h View 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/WebScheduler.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebURLLoaderMockFactory.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebViewScheduler.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/background_sync/WebSyncProvider.h View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h View 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/public/platform/modules/installedapp/WebInstalledAppClient.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/nfc/WebNFCClient.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/modules/permissions/WebPermissionClient.h View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/push_messaging/WebPushProvider.h View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerCacheStorage.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerClientsInfo.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProvider.h View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h View 2 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistrationProxy.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/modules/webusb/WebUSBClient.h View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/modules/webusb/WebUSBDevice.h View 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h View 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 19 (6 generated)
dcheng
https://codereview.chromium.org/1865913005/diff/1/third_party/WebKit/Source/modules/background_sync/SyncCallbacks.cpp File third_party/WebKit/Source/modules/background_sync/SyncCallbacks.cpp (right): https://codereview.chromium.org/1865913005/diff/1/third_party/WebKit/Source/modules/background_sync/SyncCallbacks.cpp#newcode33 third_party/WebKit/Source/modules/background_sync/SyncCallbacks.cpp:33: OwnPtr<WebSyncRegistration> registration = adoptPtr(webSyncRegistration.release()); FWIW, I think we'd be ...
4 years, 8 months ago (2016-04-07 00:26:12 UTC) #2
kinuko
Yay~!! One DBC https://codereview.chromium.org/1865913005/diff/1/third_party/WebKit/public/platform/WebCallbacks.h File third_party/WebKit/public/platform/WebCallbacks.h (right): https://codereview.chromium.org/1865913005/diff/1/third_party/WebKit/public/platform/WebCallbacks.h#newcode39 third_party/WebKit/public/platform/WebCallbacks.h:39: // When transferring ownership, use |WebPrivatePassOwnPtr<X>| ...
4 years, 8 months ago (2016-04-07 00:36:46 UTC) #3
dcheng
https://codereview.chromium.org/1865913005/diff/1/third_party/WebKit/public/platform/WebCallbacks.h File third_party/WebKit/public/platform/WebCallbacks.h (right): https://codereview.chromium.org/1865913005/diff/1/third_party/WebKit/public/platform/WebCallbacks.h#newcode39 third_party/WebKit/public/platform/WebCallbacks.h:39: // When transferring ownership, use |WebPrivatePassOwnPtr<X>| as a type ...
4 years, 8 months ago (2016-04-07 00:58:45 UTC) #4
haraken
LGTM
4 years, 8 months ago (2016-04-07 01:18:22 UTC) #5
vabr (Chromium)
components/password_manager/* LGTM Thanks for this CL! Vaclav
4 years, 8 months ago (2016-04-07 02:02:42 UTC) #6
Yuta Kitamura
LGTM, thanks for doing this!
4 years, 8 months ago (2016-04-07 04:13:58 UTC) #7
dcheng
+mcilroy for components/scheduler +mkwst for components/test_runner +esprehn for content
4 years, 8 months ago (2016-04-07 04:18:03 UTC) #9
esprehn
lgtm
4 years, 8 months ago (2016-04-07 04:31:25 UTC) #10
Mike West
LGTM!
4 years, 8 months ago (2016-04-07 08:36:17 UTC) #11
alex clarke (OOO till 29th)
components/scheduler LGTM
4 years, 8 months ago (2016-04-07 16:35:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1865913005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1865913005/40001
4 years, 8 months ago (2016-04-07 16:36:56 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-07 16:44:41 UTC) #17
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 16:45:54 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e0d99834d5d8f817c55828c1f53b4d0946b2d6df
Cr-Commit-Position: refs/heads/master@{#385784}

Powered by Google App Engine
This is Rietveld 408576698