| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/sync/notifier/communicator/login_failure.h" | 5 #include "chrome/common/net/notifier/communicator/login_failure.h" |
| 6 | 6 |
| 7 namespace notifier { | 7 namespace notifier { |
| 8 | 8 |
| 9 LoginFailure::LoginFailure(LoginError error) | 9 LoginFailure::LoginFailure(LoginError error) |
| 10 : error_(error), | 10 : error_(error), |
| 11 xmpp_error_(buzz::XmppEngine::ERROR_NONE), | 11 xmpp_error_(buzz::XmppEngine::ERROR_NONE), |
| 12 subcode_(0) { | 12 subcode_(0) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 LoginFailure::LoginFailure(LoginError error, | 15 LoginFailure::LoginFailure(LoginError error, |
| 16 buzz::XmppEngine::Error xmpp_error, | 16 buzz::XmppEngine::Error xmpp_error, |
| 17 int subcode) | 17 int subcode) |
| 18 : error_(error), | 18 : error_(error), |
| 19 xmpp_error_(xmpp_error), | 19 xmpp_error_(xmpp_error), |
| 20 subcode_(subcode) { | 20 subcode_(subcode) { |
| 21 } | 21 } |
| 22 | 22 |
| 23 buzz::XmppEngine::Error LoginFailure::xmpp_error() const { | 23 buzz::XmppEngine::Error LoginFailure::xmpp_error() const { |
| 24 ASSERT(error_ == XMPP_ERROR); | 24 ASSERT(error_ == XMPP_ERROR); |
| 25 return xmpp_error_; | 25 return xmpp_error_; |
| 26 } | 26 } |
| 27 | 27 |
| 28 } // namespace notifier | 28 } // namespace notifier |
| OLD | NEW |