OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "cloud_print/service/service_state.h" | 5 #include "cloud_print/service/win/service_state.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "net/base/escape.h" | 13 #include "net/base/escape.h" |
14 #include "net/base/io_buffer.h" | 14 #include "net/base/io_buffer.h" |
15 #include "net/url_request/url_request.h" | 15 #include "net/url_request/url_request.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 const std::string& proxy_id) { | 202 const std::string& proxy_id) { |
203 robot_token_.clear(); | 203 robot_token_.clear(); |
204 robot_email_.clear(); | 204 robot_email_.clear(); |
205 email_ = email; | 205 email_ = email; |
206 proxy_id_ = proxy_id; | 206 proxy_id_ = proxy_id; |
207 auth_token_ = LoginToGoogle("cloudprint", email_, password); | 207 auth_token_ = LoginToGoogle("cloudprint", email_, password); |
208 xmpp_auth_token_ = LoginToGoogle("chromiumsync", email_, password); | 208 xmpp_auth_token_ = LoginToGoogle("chromiumsync", email_, password); |
209 return IsValid(); | 209 return IsValid(); |
210 } | 210 } |
211 | 211 |
OLD | NEW |