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

Side by Side Diff: chromecast/browser/cast_browser_process.cc

Issue 1553503002: Convert Pass()→std::move() in //chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « chromecast/base/serializers.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromecast/browser/cast_browser_process.h" 5 #include "chromecast/browser/cast_browser_process.h"
6 6
7 #include <utility>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
9 #include "build/build_config.h" 11 #include "build/build_config.h"
10 #include "chromecast/base/metrics/cast_metrics_helper.h" 12 #include "chromecast/base/metrics/cast_metrics_helper.h"
11 #include "chromecast/browser/cast_browser_context.h" 13 #include "chromecast/browser/cast_browser_context.h"
12 #include "chromecast/browser/cast_resource_dispatcher_host_delegate.h" 14 #include "chromecast/browser/cast_resource_dispatcher_host_delegate.h"
13 #include "chromecast/browser/devtools/remote_debugging_server.h" 15 #include "chromecast/browser/devtools/remote_debugging_server.h"
14 #include "chromecast/browser/metrics/cast_metrics_service_client.h" 16 #include "chromecast/browser/metrics/cast_metrics_service_client.h"
15 #include "chromecast/net/connectivity_checker.h" 17 #include "chromecast/net/connectivity_checker.h"
16 #include "chromecast/service/cast_service.h" 18 #include "chromecast/service/cast_service.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 65 }
64 66
65 void CastBrowserProcess::SetCastService(scoped_ptr<CastService> cast_service) { 67 void CastBrowserProcess::SetCastService(scoped_ptr<CastService> cast_service) {
66 DCHECK(!cast_service_); 68 DCHECK(!cast_service_);
67 cast_service_.swap(cast_service); 69 cast_service_.swap(cast_service);
68 } 70 }
69 71
70 #if defined(USE_AURA) 72 #if defined(USE_AURA)
71 void CastBrowserProcess::SetCastScreen(scoped_ptr<CastScreen> cast_screen) { 73 void CastBrowserProcess::SetCastScreen(scoped_ptr<CastScreen> cast_screen) {
72 DCHECK(!cast_screen_); 74 DCHECK(!cast_screen_);
73 cast_screen_ = cast_screen.Pass(); 75 cast_screen_ = std::move(cast_screen);
74 } 76 }
75 #endif // defined(USE_AURA) 77 #endif // defined(USE_AURA)
76 78
77 void CastBrowserProcess::SetMetricsHelper( 79 void CastBrowserProcess::SetMetricsHelper(
78 scoped_ptr<metrics::CastMetricsHelper> metrics_helper) { 80 scoped_ptr<metrics::CastMetricsHelper> metrics_helper) {
79 DCHECK(!metrics_helper_); 81 DCHECK(!metrics_helper_);
80 metrics_helper_.swap(metrics_helper); 82 metrics_helper_.swap(metrics_helper);
81 } 83 }
82 84
83 void CastBrowserProcess::SetMetricsServiceClient( 85 void CastBrowserProcess::SetMetricsServiceClient(
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 connectivity_checker_.swap(connectivity_checker); 119 connectivity_checker_.swap(connectivity_checker);
118 } 120 }
119 121
120 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) { 122 void CastBrowserProcess::SetNetLog(net::NetLog* net_log) {
121 DCHECK(!net_log_); 123 DCHECK(!net_log_);
122 net_log_ = net_log; 124 net_log_ = net_log;
123 } 125 }
124 126
125 } // namespace shell 127 } // namespace shell
126 } // namespace chromecast 128 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/base/serializers.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698