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

Unified Diff: chrome/browser/extensions/api/networking_private/networking_private_ui_delegate_factory_impl.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header 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: chrome/browser/extensions/api/networking_private/networking_private_ui_delegate_factory_impl.cc
diff --git a/chrome/browser/extensions/api/networking_private/networking_private_ui_delegate_factory_impl.cc b/chrome/browser/extensions/api/networking_private/networking_private_ui_delegate_factory_impl.cc
index 803ef911ba0e677fb50dd3424ddecda2f5eb624e..e97cd3c649a85d31427aa7b83333314c05d1ea3e 100644
--- a/chrome/browser/extensions/api/networking_private/networking_private_ui_delegate_factory_impl.cc
+++ b/chrome/browser/extensions/api/networking_private/networking_private_ui_delegate_factory_impl.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/extensions/api/networking_private/networking_private_ui_delegate_factory_impl.h"
+#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#if defined(OS_CHROMEOS)
@@ -18,10 +19,10 @@ NetworkingPrivateUIDelegateFactoryImpl::
NetworkingPrivateUIDelegateFactoryImpl::
~NetworkingPrivateUIDelegateFactoryImpl() {}
-scoped_ptr<NetworkingPrivateDelegate::UIDelegate>
+std::unique_ptr<NetworkingPrivateDelegate::UIDelegate>
NetworkingPrivateUIDelegateFactoryImpl::CreateDelegate() {
#if defined(OS_CHROMEOS)
- return make_scoped_ptr(
+ return base::WrapUnique(
new chromeos::extensions::NetworkingPrivateUIDelegateChromeOS());
#else
return nullptr;

Powered by Google App Engine
This is Rietveld 408576698