| Index: content/browser/indexed_db/indexed_db_quota_client.cc
|
| diff --git a/content/browser/indexed_db/indexed_db_quota_client.cc b/content/browser/indexed_db/indexed_db_quota_client.cc
|
| index 8fc9ce8cd96fb27a74d93f12eca54bbc82c0a4a1..05eaf36b48154345339999dfbee7438d88d1e1d0 100644
|
| --- a/content/browser/indexed_db/indexed_db_quota_client.cc
|
| +++ b/content/browser/indexed_db/indexed_db_quota_client.cc
|
| @@ -36,8 +36,8 @@ int64_t GetOriginUsageOnIndexedDBThread(IndexedDBContextImpl* context,
|
| void GetAllOriginsOnIndexedDBThread(IndexedDBContextImpl* context,
|
| std::set<GURL>* origins_to_return) {
|
| DCHECK(context->TaskRunner()->RunsTasksOnCurrentThread());
|
| - std::vector<GURL> all_origins = context->GetAllOrigins();
|
| - origins_to_return->insert(all_origins.begin(), all_origins.end());
|
| + for (const auto& origin : context->GetAllOrigins())
|
| + origins_to_return->insert(GURL(origin.Serialize()));
|
| }
|
|
|
| void DidGetOrigins(const IndexedDBQuotaClient::GetOriginsCallback& callback,
|
| @@ -50,8 +50,8 @@ void GetOriginsForHostOnIndexedDBThread(IndexedDBContextImpl* context,
|
| const std::string& host,
|
| std::set<GURL>* origins_to_return) {
|
| DCHECK(context->TaskRunner()->RunsTasksOnCurrentThread());
|
| - std::vector<GURL> all_origins = context->GetAllOrigins();
|
| - for (const auto& origin_url : all_origins) {
|
| + for (const auto& origin : context->GetAllOrigins()) {
|
| + GURL origin_url(origin.Serialize());
|
| if (host == net::GetHostOrSpecFromURL(origin_url))
|
| origins_to_return->insert(origin_url);
|
| }
|
|
|