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

Unified Diff: remoting/host/setup/win/auth_code_getter.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/win/auth_code_getter.cc
diff --git a/remoting/host/setup/win/auth_code_getter.cc b/remoting/host/setup/win/auth_code_getter.cc
index 2fbb68dfc361b78880cea068b3472d096aaf2802..04f3f905005f601e8e163864e15f7a11f3b8db00 100644
--- a/remoting/host/setup/win/auth_code_getter.cc
+++ b/remoting/host/setup/win/auth_code_getter.cc
@@ -27,7 +27,7 @@ AuthCodeGetter::~AuthCodeGetter() {
void AuthCodeGetter::GetAuthCode(
base::Callback<void(const std::string&)> on_auth_code) {
- if (browser_) {
+ if (browser_.get()) {
on_auth_code.Run("");
return;
}
@@ -67,7 +67,7 @@ void AuthCodeGetter::OnTimer() {
bool AuthCodeGetter::TestBrowserUrl(std::string* auth_code) {
*auth_code = "";
- if (!browser_) {
+ if (!browser_.get()) {
return true;
}
base::win::ScopedBstr url;
@@ -86,7 +86,7 @@ bool AuthCodeGetter::TestBrowserUrl(std::string* auth_code) {
}
void AuthCodeGetter::KillBrowser() {
- if (browser_) {
+ if (browser_.get()) {
browser_->Quit();
browser_.Release();
}

Powered by Google App Engine
This is Rietveld 408576698