| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Implement the storage of service tokens in memory. | 5 // Implement the storage of service tokens in memory. |
| 6 | 6 |
| 7 #include "chrome/browser/sync/util/user_settings.h" | 7 #include "chrome/browser/sync/util/user_settings.h" |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "chrome/browser/password_manager/encryptor.h" | 10 #include "chrome/browser/password_manager/encryptor.h" |
| 11 #include "chrome/common/sqlite_utils.h" | 11 #include "chrome/browser/sync/util/sqlite_utils.h" |
| 12 | 12 |
| 13 namespace browser_sync { | 13 namespace browser_sync { |
| 14 | 14 |
| 15 void UserSettings::SetAuthTokenForService( | 15 void UserSettings::SetAuthTokenForService( |
| 16 const std::string& email, | 16 const std::string& email, |
| 17 const std::string& service_name, | 17 const std::string& service_name, |
| 18 const std::string& long_lived_service_token) { | 18 const std::string& long_lived_service_token) { |
| 19 | 19 |
| 20 VLOG(1) << "Saving auth token " << long_lived_service_token | 20 VLOG(1) << "Saving auth token " << long_lived_service_token |
| 21 << " for " << email << "for service " << service_name; | 21 << " for " << email << "for service " << service_name; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 return true; | 66 return true; |
| 67 } | 67 } |
| 68 | 68 |
| 69 VLOG(1) << "Couldn't find service token for " << service_name; | 69 VLOG(1) << "Couldn't find service token for " << service_name; |
| 70 | 70 |
| 71 return false; | 71 return false; |
| 72 } | 72 } |
| 73 | 73 |
| 74 } // namespace browser_sync | 74 } // namespace browser_sync |
| OLD | NEW |