OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/chromeos/login/oauth1_login_manager.h" | 5 #include "chrome/browser/chromeos/login/oauth1_login_manager.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/chromeos/login/user_manager.h" | 9 #include "chrome/browser/chromeos/login/user_manager.h" |
10 #include "chrome/browser/policy/browser_policy_connector.h" | 10 #include "chrome/browser/policy/browser_policy_connector.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 } else { | 214 } else { |
215 LOG(INFO) << "Failed to get OAuth1 token/secret encrypted."; | 215 LOG(INFO) << "Failed to get OAuth1 token/secret encrypted."; |
216 // Set the OAuth status invalid so that the user will go through full | 216 // Set the OAuth status invalid so that the user will go through full |
217 // GAIA login next time. | 217 // GAIA login next time. |
218 UserManager::Get()->SaveUserOAuthStatus( | 218 UserManager::Get()->SaveUserOAuthStatus( |
219 user->email(), User::OAUTH1_TOKEN_STATUS_INVALID); | 219 user->email(), User::OAUTH1_TOKEN_STATUS_INVALID); |
220 } | 220 } |
221 } | 221 } |
222 | 222 |
223 } // namespace chromeos | 223 } // namespace chromeos |
OLD | NEW |