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

Unified Diff: mojo/application/content_handler_factory.h

Issue 2069663002: Some scoped_ptr -> std::unique_ptr conversion, especially under //mojo. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 6 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: mojo/application/content_handler_factory.h
diff --git a/mojo/application/content_handler_factory.h b/mojo/application/content_handler_factory.h
index b1ebccccb493e24d60335ebbdd91c8888e040a97..d996205b1fc06bf6dae282a013ec933bcd5ded35 100644
--- a/mojo/application/content_handler_factory.h
+++ b/mojo/application/content_handler_factory.h
@@ -5,7 +5,8 @@
#ifndef MOJO_APPLICATION_CONTENT_HANDLER_FACTORY_H_
#define MOJO_APPLICATION_CONTENT_HANDLER_FACTORY_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "mojo/public/cpp/application/service_provider_impl.h"
#include "mojo/public/interfaces/application/shell.mojom.h"
#include "mojo/services/content_handler/interfaces/content_handler.mojom.h"
@@ -41,7 +42,7 @@ class ContentHandlerFactory {
// This method will be called on a new thread. The application will be run
// on this new thread, and the returned value will be kept alive until the
// application ends.
- virtual scoped_ptr<HandledApplicationHolder> CreateApplication(
+ virtual std::unique_ptr<HandledApplicationHolder> CreateApplication(
InterfaceRequest<Application> application_request,
URLResponsePtr response) = 0;
@@ -62,13 +63,14 @@ class HandledApplicationHolderImpl
explicit HandledApplicationHolderImpl(A* value) : value_(value) {}
private:
- scoped_ptr<A> value_;
+ std::unique_ptr<A> value_;
};
template <class A>
-scoped_ptr<ContentHandlerFactory::HandledApplicationHolder>
+std::unique_ptr<ContentHandlerFactory::HandledApplicationHolder>
make_handled_factory_holder(A* value) {
- return make_scoped_ptr(new HandledApplicationHolderImpl<A>(value));
+ return std::unique_ptr<ContentHandlerFactory::HandledApplicationHolder>(
+ new HandledApplicationHolderImpl<A>(value));
}
} // namespace mojo
« no previous file with comments | « mojo/android/system/core_impl.cc ('k') | mojo/converters/native_viewport/surface_configuration_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698