| Index: content/browser/storage_partition_impl.cc
|
| diff --git a/content/browser/storage_partition_impl.cc b/content/browser/storage_partition_impl.cc
|
| index 03b107ac75099480c89d755154db9fd3f7244986..6fce1b87c5596bc05be541a6f2e6a46cc5bae9f2 100644
|
| --- a/content/browser/storage_partition_impl.cc
|
| +++ b/content/browser/storage_partition_impl.cc
|
| @@ -894,10 +894,18 @@ void StoragePartitionImpl::ClearHttpAndMediaCaches(
|
| }
|
| }
|
|
|
| -void StoragePartitionImpl::Flush() {
|
| +std::vector<scoped_refptr<base::SequencedTaskRunner>>
|
| +StoragePartitionImpl::Flush() {
|
| DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
| - if (GetDOMStorageContext())
|
| - GetDOMStorageContext()->Flush();
|
| + std::vector<scoped_refptr<base::SequencedTaskRunner>> flush_runners;
|
| + if (dom_storage_context_) {
|
| + dom_storage_context_->Flush();
|
| + flush_runners.push_back(dom_storage_context_->GetSequencedTaskRunner(
|
| + DOMStorageTaskRunner::PRIMARY_SEQUENCE));
|
| + flush_runners.push_back(dom_storage_context_->GetSequencedTaskRunner(
|
| + DOMStorageTaskRunner::COMMIT_SEQUENCE));
|
| + }
|
| + return flush_runners;
|
| }
|
|
|
| void StoragePartitionImpl::ClearBluetoothAllowedDevicesMapForTesting() {
|
|
|