fixup! [M108 Migration] Support unlimitedstorage privilege for Indexed DB 23/289423/2
authorGajendra N <gajendra.n@samsung.com>
Tue, 7 Mar 2023 10:27:10 +0000 (15:57 +0530)
committerBot Blink <blinkbot@samsung.com>
Tue, 7 Mar 2023 12:06:19 +0000 (12:06 +0000)
Fixes crash error occured during youtube page load.

In original patch, std::move was called on already moved pointer which
went unnoticed during migration.

Change-Id: Id853af04730666f609d74e102bdda44002cd8361
Signed-off-by: Gajendra N <gajendra.n@samsung.com>
storage/browser/quota/quota_manager_proxy.cc

index 6bf3767..d21ee12 100644 (file)
@@ -558,10 +558,10 @@ void QuotaManagerProxy::GetUsageAndQuota(
       (type == blink::mojom::StorageType::kTemporary)
           ? base::BindOnce(&QuotaManagerImpl::GetTizenUnlimitedStoragePrivilege,
                            quota_manager_impl_, storage_key.origin().GetURL(),
-                           id, transaction_size, std::move(callback))
+                           id, transaction_size, std::move(respond))
           :
 #endif
-          std::move(callback);
+          std::move(respond);
 
   quota_manager_impl_->GetUsageAndQuota(storage_key, type, std::move(wrapped_callback));
 }