Index: remoting/protocol/third_party_authenticator_base.cc |
diff --git a/remoting/protocol/third_party_authenticator_base.cc b/remoting/protocol/third_party_authenticator_base.cc |
index 9d6be72db2eabdb2d0c032bba867e9ea8c556ebc..019e7889c17ee79e63b2eb91f7d1504a43c55046 100644 |
--- a/remoting/protocol/third_party_authenticator_base.cc |
+++ b/remoting/protocol/third_party_authenticator_base.cc |
@@ -28,12 +28,17 @@ const buzz::StaticQName ThirdPartyAuthenticatorBase::kTokenTag = |
ThirdPartyAuthenticatorBase::ThirdPartyAuthenticatorBase( |
Authenticator::State initial_state) |
: token_state_(initial_state), |
+ started_(false), |
rejection_reason_(INVALID_CREDENTIALS) { |
} |
ThirdPartyAuthenticatorBase::~ThirdPartyAuthenticatorBase() { |
} |
+bool ThirdPartyAuthenticatorBase::started() const { |
+ return started_; |
+} |
+ |
Authenticator::State ThirdPartyAuthenticatorBase::state() const { |
if (token_state_ == ACCEPTED) |
return underlying_->state(); |
@@ -74,9 +79,10 @@ scoped_ptr<buzz::XmlElement> ThirdPartyAuthenticatorBase::GetNextMessage() { |
message = CreateEmptyAuthenticatorMessage(); |
} |
- if (token_state_ == MESSAGE_READY) |
+ if (token_state_ == MESSAGE_READY) { |
AddTokenElements(message.get()); |
- |
+ started_ = true; |
+ } |
return message.Pass(); |
} |