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

Unified Diff: content/renderer/presentation/presentation_dispatcher.cc

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.h ('k') | content/renderer/raster_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_dispatcher.cc
diff --git a/content/renderer/presentation/presentation_dispatcher.cc b/content/renderer/presentation/presentation_dispatcher.cc
index 6536f86324abeba58202e4a890e8b2da718e0806..a96d6ce77ec902d85c77d5fc7d8f36b68dcba2c4 100644
--- a/content/renderer/presentation/presentation_dispatcher.cc
+++ b/content/renderer/presentation/presentation_dispatcher.cc
@@ -145,7 +145,7 @@ void PresentationDispatcher::sendString(
return;
}
- message_request_queue_.push(make_scoped_ptr(
+ message_request_queue_.push(base::WrapUnique(
CreateSendTextMessageRequest(presentationUrl, presentationId, message)));
// Start processing request if only one in the queue.
if (message_request_queue_.size() == 1)
@@ -164,7 +164,7 @@ void PresentationDispatcher::sendArrayBuffer(
return;
}
- message_request_queue_.push(make_scoped_ptr(CreateSendBinaryMessageRequest(
+ message_request_queue_.push(base::WrapUnique(CreateSendBinaryMessageRequest(
presentationUrl, presentationId,
mojom::PresentationMessageType::ARRAY_BUFFER, data, length)));
// Start processing request if only one in the queue.
@@ -184,7 +184,7 @@ void PresentationDispatcher::sendBlobData(
return;
}
- message_request_queue_.push(make_scoped_ptr(CreateSendBinaryMessageRequest(
+ message_request_queue_.push(base::WrapUnique(CreateSendBinaryMessageRequest(
presentationUrl, presentationId, mojom::PresentationMessageType::BLOB,
data, length)));
// Start processing request if only one in the queue.
@@ -248,7 +248,7 @@ void PresentationDispatcher::getAvailability(
auto status_it = availability_status_.find(availability_url);
if (status_it == availability_status_.end()) {
status = new AvailabilityStatus(availability_url);
- availability_status_[availability_url] = make_scoped_ptr(status);
+ availability_status_[availability_url] = base::WrapUnique(status);
} else {
status = status_it->second.get();
}
@@ -423,7 +423,7 @@ void PresentationDispatcher::OnSessionMessagesReceived(
for (size_t i = 0; i < messages.size(); ++i) {
// Note: Passing batches of messages to the Blink layer would be more
// efficient.
- scoped_ptr<PresentationConnectionClient> session_client(
+ std::unique_ptr<PresentationConnectionClient> session_client(
new PresentationConnectionClient(session_info->url, session_info->id));
switch (messages[i]->type) {
case mojom::PresentationMessageType::TEXT: {
« no previous file with comments | « content/renderer/presentation/presentation_dispatcher.h ('k') | content/renderer/raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698