Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Side by Side Diff: chrome/browser/extensions/token_cache/token_cache_service.cc

Issue 502343002: Add account_id to signin manager notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@isauth
Patch Set: Fix android trybots Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698