| Index: chrome/browser/signin/token_service.cc
|
| diff --git a/chrome/browser/signin/token_service.cc b/chrome/browser/signin/token_service.cc
|
| index 33ef34291822cddedf2c1996d97399234bcb1ce8..ef2886db24bb10f915cad27191a4bcdcbc758421 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(
|
|
|