| 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/extensions/token_cache/token_cache_service.h" | 5 #include "chrome/browser/extensions/token_cache/token_cache_service.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/signin/signin_manager_factory.h" | 8 #include "chrome/browser/signin/signin_manager_factory.h" |
| 9 #include "components/signin/core/browser/signin_manager.h" | 9 #include "components/signin/core/browser/signin_manager.h" |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 63 } |
| 64 | 64 |
| 65 return std::string(); | 65 return std::string(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void TokenCacheService::Shutdown() { | 68 void TokenCacheService::Shutdown() { |
| 69 SigninManagerFactory::GetForProfile(const_cast<Profile*>(profile_)) | 69 SigninManagerFactory::GetForProfile(const_cast<Profile*>(profile_)) |
| 70 ->RemoveObserver(this); | 70 ->RemoveObserver(this); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void TokenCacheService::GoogleSignedOut(const std::string& username) { | 73 void TokenCacheService::GoogleSignedOut(const std::string& account_id, |
| 74 const std::string& username) { |
| 74 token_cache_.clear(); | 75 token_cache_.clear(); |
| 75 } | 76 } |
| 76 | 77 |
| 77 } // namespace extensions | 78 } // namespace extensions |
| OLD | NEW |