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

Unified Diff: content/browser/presentation/presentation_service_impl.cc

Issue 1874893002: Convert //content/browser 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
Index: content/browser/presentation/presentation_service_impl.cc
diff --git a/content/browser/presentation/presentation_service_impl.cc b/content/browser/presentation/presentation_service_impl.cc
index ee77e3607ddba183be3f459ab9ba8eb0a5caeb5c..53d8dcb1622302d1f8e4425cd912043cd3403296 100644
--- a/content/browser/presentation/presentation_service_impl.cc
+++ b/content/browser/presentation/presentation_service_impl.cc
@@ -65,10 +65,10 @@ mojom::SessionMessagePtr ToMojoSessionMessage(
return output;
}
-scoped_ptr<PresentationSessionMessage> GetPresentationSessionMessage(
+std::unique_ptr<PresentationSessionMessage> GetPresentationSessionMessage(
mojom::SessionMessagePtr input) {
DCHECK(!input.is_null());
- scoped_ptr<content::PresentationSessionMessage> output;
+ std::unique_ptr<content::PresentationSessionMessage> output;
switch (input->type) {
case mojom::PresentationMessageType::TEXT: {
DCHECK(!input->message.is_null());
@@ -194,7 +194,7 @@ void PresentationServiceImpl::ListenForScreenAvailability(
if (screen_availability_listeners_.count(availability_url))
return;
- scoped_ptr<ScreenAvailabilityListenerImpl> listener(
+ std::unique_ptr<ScreenAvailabilityListenerImpl> listener(
new ScreenAvailabilityListenerImpl(availability_url, this));
if (delegate_->AddScreenAvailabilityListener(
render_process_id_,

Powered by Google App Engine
This is Rietveld 408576698