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

Unified Diff: remoting/host/setup/daemon_controller_delegate_win.cc

Issue 719353002: Remove implicit conversions from scoped_refptr to T* in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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: remoting/host/setup/daemon_controller_delegate_win.cc
diff --git a/remoting/host/setup/daemon_controller_delegate_win.cc b/remoting/host/setup/daemon_controller_delegate_win.cc
index 36f55e59c48182259e03f9bc0a82d38e8a4017c2..02e6698e6b442f2953f55676cff6d3d49c873860 100644
--- a/remoting/host/setup/daemon_controller_delegate_win.cc
+++ b/remoting/host/setup/daemon_controller_delegate_win.cc
@@ -326,7 +326,7 @@ DaemonControllerDelegateWin::GetUsageStatsConsent() {
}
HRESULT DaemonControllerDelegateWin::ActivateController() {
- if (!control_) {
+ if (!control_.get()) {
CLSID class_id;
HRESULT hr = CLSIDFromProgID(kDaemonController, &class_id);
if (FAILED(hr)) {
@@ -362,7 +362,7 @@ HRESULT DaemonControllerDelegateWin::ActivateElevatedController() {
if (!control_is_elevated_)
ReleaseController();
- if (!control_) {
+ if (!control_.get()) {
BIND_OPTS3 bind_options;
memset(&bind_options, 0, sizeof(bind_options));
bind_options.cbStruct = sizeof(bind_options);
@@ -423,7 +423,7 @@ void DaemonControllerDelegateWin::StartHostWithConfig(
}
// Record the user's consent.
- if (control2_) {
+ if (control2_.get()) {
hr = control2_->SetUsageStatsConsent(consent);
if (FAILED(hr)) {
InvokeCompletionCallback(done, hr);

Powered by Google App Engine
This is Rietveld 408576698