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

Unified Diff: content/browser/android/child_process_launcher_android.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/android/child_process_launcher_android.cc
diff --git a/content/browser/android/child_process_launcher_android.cc b/content/browser/android/child_process_launcher_android.cc
index 11bb6de418411bb775f19cd236fc40cdb38d8548..05960344fc77bee5065cff995fce4281874d28f4 100644
--- a/content/browser/android/child_process_launcher_android.cc
+++ b/content/browser/android/child_process_launcher_android.cc
@@ -6,13 +6,14 @@
#include <stddef.h>
#include <stdint.h>
+
+#include <memory>
#include <utility>
#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "base/android/jni_array.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "content/browser/file_descriptor_info_impl.h"
#include "content/browser/frame_host/render_frame_host_impl.h"
#include "content/browser/media/android/browser_media_player_manager.h"
@@ -89,7 +90,7 @@ static void SetSurfacePeer(
}
void LaunchDownloadProcess(base::CommandLine* cmd_line) {
- scoped_ptr<base::CommandLine> cmd_line_deleter(cmd_line);
+ std::unique_ptr<base::CommandLine> cmd_line_deleter(cmd_line);
JNIEnv* env = AttachCurrentThread();
DCHECK(env);
@@ -151,7 +152,7 @@ void StartDownloadProcessIfNecessary() {
void StartChildProcess(
const base::CommandLine::StringVector& argv,
int child_process_id,
- scoped_ptr<content::FileDescriptorInfo> files_to_register,
+ std::unique_ptr<content::FileDescriptorInfo> files_to_register,
const std::map<int, base::MemoryMappedFile::Region>& regions,
const StartChildProcessCallback& callback) {
JNIEnv* env = AttachCurrentThread();
« no previous file with comments | « content/browser/android/child_process_launcher_android.h ('k') | content/browser/android/content_protocol_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698