OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/sync/notifier/communicator/login_failure.h" | |
6 | |
7 namespace notifier { | |
8 | |
9 LoginFailure::LoginFailure(LoginError error) | |
10 : error_(error), | |
11 xmpp_error_(buzz::XmppEngine::ERROR_NONE), | |
12 subcode_(0) { | |
13 } | |
14 | |
15 LoginFailure::LoginFailure(LoginError error, | |
16 buzz::XmppEngine::Error xmpp_error, | |
17 int subcode) | |
18 : error_(error), | |
19 xmpp_error_(xmpp_error), | |
20 subcode_(subcode) { | |
21 } | |
22 | |
23 buzz::XmppEngine::Error LoginFailure::xmpp_error() const { | |
24 ASSERT(error_ == XMPP_ERROR); | |
25 return xmpp_error_; | |
26 } | |
27 | |
28 } // namespace notifier | |
OLD | NEW |