| Index: components/signin/core/browser/webdata/token_web_data.cc
|
| diff --git a/components/signin/core/browser/webdata/token_web_data.cc b/components/signin/core/browser/webdata/token_web_data.cc
|
| index 0c6425529c05c362a0ef9c8fa50b6138c4987401..d8c405f060515aaa71fbfc00db834c60ffefba00 100644
|
| --- a/components/signin/core/browser/webdata/token_web_data.cc
|
| +++ b/components/signin/core/browser/webdata/token_web_data.cc
|
| @@ -47,10 +47,10 @@ class TokenWebDataBackend
|
| }
|
|
|
| std::unique_ptr<WDTypedResult> GetAllTokens(WebDatabase* db) {
|
| - std::map<std::string, std::string> map;
|
| - TokenServiceTable::FromWebDatabase(db)->GetAllTokens(&map);
|
| - return base::MakeUnique<WDResult<std::map<std::string, std::string>>>(
|
| - TOKEN_RESULT, map);
|
| + TokenResult result;
|
| + result.db_result =
|
| + TokenServiceTable::FromWebDatabase(db)->GetAllTokens(&result.tokens);
|
| + return base::MakeUnique<WDResult<TokenResult>>(TOKEN_RESULT, result);
|
| }
|
|
|
| protected:
|
| @@ -62,6 +62,11 @@ class TokenWebDataBackend
|
| friend class base::DeleteHelper<TokenWebDataBackend>;
|
| };
|
|
|
| +TokenResult::TokenResult()
|
| + : db_result(TokenServiceTable::TOKEN_DB_RESULT_SQL_INVALID_STATEMENT) {}
|
| +TokenResult::TokenResult(const TokenResult& other) = default;
|
| +TokenResult::~TokenResult(){};
|
| +
|
| TokenWebData::TokenWebData(
|
| scoped_refptr<WebDatabaseService> wdbs,
|
| scoped_refptr<base::SingleThreadTaskRunner> ui_thread,
|
|
|