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

Unified Diff: chromecast/browser/cast_browser_process.cc

Issue 1875623002: Convert //chromecast 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
« no previous file with comments | « chromecast/browser/cast_browser_process.h ('k') | chromecast/browser/cast_content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/browser/cast_browser_process.cc
diff --git a/chromecast/browser/cast_browser_process.cc b/chromecast/browser/cast_browser_process.cc
index 3f42342cd151d7bb984a2aa8088e6b52e690274f..cf7101aab315a05cd2c52005d003c15de9ff24af 100644
--- a/chromecast/browser/cast_browser_process.cc
+++ b/chromecast/browser/cast_browser_process.cc
@@ -53,7 +53,7 @@ CastBrowserProcess::~CastBrowserProcess() {
}
void CastBrowserProcess::SetBrowserContext(
- scoped_ptr<CastBrowserContext> browser_context) {
+ std::unique_ptr<CastBrowserContext> browser_context) {
DCHECK(!browser_context_);
browser_context_.swap(browser_context);
}
@@ -64,50 +64,53 @@ void CastBrowserProcess::SetCastContentBrowserClient(
cast_content_browser_client_ = cast_content_browser_client;
}
-void CastBrowserProcess::SetCastService(scoped_ptr<CastService> cast_service) {
+void CastBrowserProcess::SetCastService(
+ std::unique_ptr<CastService> cast_service) {
DCHECK(!cast_service_);
cast_service_.swap(cast_service);
}
#if defined(USE_AURA)
-void CastBrowserProcess::SetCastScreen(scoped_ptr<CastScreen> cast_screen) {
+void CastBrowserProcess::SetCastScreen(
+ std::unique_ptr<CastScreen> cast_screen) {
DCHECK(!cast_screen_);
cast_screen_ = std::move(cast_screen);
}
#endif // defined(USE_AURA)
void CastBrowserProcess::SetMetricsHelper(
- scoped_ptr<metrics::CastMetricsHelper> metrics_helper) {
+ std::unique_ptr<metrics::CastMetricsHelper> metrics_helper) {
DCHECK(!metrics_helper_);
metrics_helper_.swap(metrics_helper);
}
void CastBrowserProcess::SetMetricsServiceClient(
- scoped_ptr<metrics::CastMetricsServiceClient> metrics_service_client) {
+ std::unique_ptr<metrics::CastMetricsServiceClient> metrics_service_client) {
DCHECK(!metrics_service_client_);
metrics_service_client_.swap(metrics_service_client);
}
-void CastBrowserProcess::SetPrefService(scoped_ptr<PrefService> pref_service) {
+void CastBrowserProcess::SetPrefService(
+ std::unique_ptr<PrefService> pref_service) {
DCHECK(!pref_service_);
pref_service_.swap(pref_service);
}
void CastBrowserProcess::SetRemoteDebuggingServer(
- scoped_ptr<RemoteDebuggingServer> remote_debugging_server) {
+ std::unique_ptr<RemoteDebuggingServer> remote_debugging_server) {
DCHECK(!remote_debugging_server_);
remote_debugging_server_.swap(remote_debugging_server);
}
void CastBrowserProcess::SetResourceDispatcherHostDelegate(
- scoped_ptr<CastResourceDispatcherHostDelegate> delegate) {
+ std::unique_ptr<CastResourceDispatcherHostDelegate> delegate) {
DCHECK(!resource_dispatcher_host_delegate_);
resource_dispatcher_host_delegate_.swap(delegate);
}
#if defined(OS_ANDROID)
void CastBrowserProcess::SetCrashDumpManager(
- scoped_ptr<breakpad::CrashDumpManager> crash_dump_manager) {
+ std::unique_ptr<breakpad::CrashDumpManager> crash_dump_manager) {
DCHECK(!crash_dump_manager_);
crash_dump_manager_.swap(crash_dump_manager);
}
« no previous file with comments | « chromecast/browser/cast_browser_process.h ('k') | chromecast/browser/cast_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698