| 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();
|
| }
|
|
|