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

Unified Diff: chrome/browser/extensions/api/messaging/native_process_launcher.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/messaging/native_process_launcher.cc
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher.cc b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
index 224664c471169627d0636d96ac7cde283c80f3e7..f297d98996735baaac827ef9e1a2dae5c77b2893 100644
--- a/chrome/browser/extensions/api/messaging/native_process_launcher.cc
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher.cc
@@ -140,7 +140,7 @@ void NativeProcessLauncherImpl::Core::DoLaunchOnThreadPool(
return;
}
- scoped_ptr<NativeMessagingHostManifest> manifest =
+ std::unique_ptr<NativeMessagingHostManifest> manifest =
NativeMessagingHostManifest::Load(manifest_path, &error_message);
if (!manifest) {
@@ -266,7 +266,7 @@ void NativeProcessLauncherImpl::Launch(const GURL& origin,
} // namespace
// static
-scoped_ptr<NativeProcessLauncher> NativeProcessLauncher::CreateDefault(
+std::unique_ptr<NativeProcessLauncher> NativeProcessLauncher::CreateDefault(
bool allow_user_level_hosts,
gfx::NativeView native_view) {
intptr_t window_handle = 0;
@@ -274,7 +274,7 @@ scoped_ptr<NativeProcessLauncher> NativeProcessLauncher::CreateDefault(
window_handle = reinterpret_cast<intptr_t>(
views::HWNDForNativeView(native_view));
#endif
- return scoped_ptr<NativeProcessLauncher>(
+ return std::unique_ptr<NativeProcessLauncher>(
new NativeProcessLauncherImpl(allow_user_level_hosts, window_handle));
}

Powered by Google App Engine
This is Rietveld 408576698