| Index: chrome/browser/signin/token_service.cc
|
| diff --git a/chrome/browser/signin/token_service.cc b/chrome/browser/signin/token_service.cc
|
| index 2237adaf3e63a19304981a2c608ba1e2fcf77ea8..51eee1e94c315148035eb3823203933f90b805cd 100644
|
| --- a/chrome/browser/signin/token_service.cc
|
| +++ b/chrome/browser/signin/token_service.cc
|
| @@ -49,6 +49,7 @@ const char* kServices[] = {
|
|
|
| TokenService::TokenService()
|
| : profile_(NULL),
|
| + token_web_data_(NULL),
|
| token_loading_query_(0),
|
| tokens_loaded_(false) {
|
| // Allow constructor to be called outside the UI thread, so it can be mocked
|
| @@ -175,20 +176,20 @@ void TokenService::UpdateCredentialsWithOAuth2(
|
|
|
| void TokenService::LoadTokensFromDB() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - if (token_web_data_.get())
|
| + if (token_web_data_)
|
| token_loading_query_ = token_web_data_->GetAllTokens(this);
|
| }
|
|
|
| void TokenService::SaveAuthTokenToDB(const std::string& service,
|
| const std::string& auth_token) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - if (token_web_data_.get())
|
| + if (token_web_data_)
|
| token_web_data_->SetTokenForService(service, auth_token);
|
| }
|
|
|
| void TokenService::EraseTokensFromDB() {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
|
| - if (token_web_data_.get())
|
| + if (token_web_data_)
|
| token_web_data_->RemoveAllTokens();
|
|
|
| content::NotificationService::current()->Notify(
|
|
|