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

Unified Diff: content/browser/utility_process_host_impl.h

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/utility_process_host_impl.h
diff --git a/content/browser/utility_process_host_impl.h b/content/browser/utility_process_host_impl.h
index 259749502083381c0646f95d4bfea6d519be3701..117818508a9dece73001faad75c37e0254795923 100644
--- a/content/browser/utility_process_host_impl.h
+++ b/content/browser/utility_process_host_impl.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_
#define CONTENT_BROWSER_UTILITY_PROCESS_HOST_IMPL_H_
+#include <memory>
#include <string>
#include <vector>
@@ -12,7 +13,6 @@
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "build/build_config.h"
#include "content/public/browser/browser_child_process_host_delegate.h"
@@ -105,14 +105,14 @@ class CONTENT_EXPORT UtilityProcessHostImpl
// process in the task manager.
base::string16 name_;
- scoped_ptr<BrowserChildProcessHostImpl> process_;
+ std::unique_ptr<BrowserChildProcessHostImpl> process_;
// Used in single-process mode instead of process_.
- scoped_ptr<base::Thread> in_process_thread_;
+ std::unique_ptr<base::Thread> in_process_thread_;
// Browser-side Mojo endpoint which sets up a Mojo channel with the child
// process and contains the browser's ServiceRegistry.
- scoped_ptr<MojoApplicationHost> mojo_application_host_;
+ std::unique_ptr<MojoApplicationHost> mojo_application_host_;
// Used to vend weak pointers, and should always be declared last.
base::WeakPtrFactory<UtilityProcessHostImpl> weak_ptr_factory_;
« no previous file with comments | « content/browser/tracing/tracing_ui.cc ('k') | content/browser/vr/android/cardboard/cardboard_vr_device_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698