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

Unified Diff: content/renderer/shared_worker/embedded_shared_worker_stub.cc

Issue 1851933002: Convert //url to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup 7 Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/shared_worker/embedded_shared_worker_stub.cc
diff --git a/content/renderer/shared_worker/embedded_shared_worker_stub.cc b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
index b1f001c7434bc194535186b66ae0b44ff63155a0..30ac9cb9ccf9d9316f12aef112ccfcc135c8dfb6 100644
--- a/content/renderer/shared_worker/embedded_shared_worker_stub.cc
+++ b/content/renderer/shared_worker/embedded_shared_worker_stub.cc
@@ -83,7 +83,7 @@ class WebServiceWorkerNetworkProviderImpl
blink::WebURLRequest& request) override {
ServiceWorkerNetworkProvider* provider =
GetNetworkProviderFromDataSource(data_source);
- scoped_ptr<RequestExtraData> extra_data(new RequestExtraData);
+ std::unique_ptr<RequestExtraData> extra_data(new RequestExtraData);
extra_data->set_service_worker_provider_id(provider->provider_id());
request.setExtraData(extra_data.release());
// Explicitly set the SkipServiceWorker flag for subresources here if the
@@ -239,7 +239,7 @@ EmbeddedSharedWorkerStub::createServiceWorkerNetworkProvider(
blink::WebDataSource* data_source) {
// Create a content::ServiceWorkerNetworkProvider for this data source so
// we can observe its requests.
- scoped_ptr<ServiceWorkerNetworkProvider> provider(
+ std::unique_ptr<ServiceWorkerNetworkProvider> provider(
new ServiceWorkerNetworkProvider(
route_id_, SERVICE_WORKER_PROVIDER_FOR_SHARED_WORKER));
« no previous file with comments | « content/renderer/shared_worker/embedded_shared_worker_stub.h ('k') | content/shell/browser/layout_test/test_info_extractor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698