| Index: content/browser/dom_storage/local_storage_context_mojo.cc
|
| diff --git a/content/browser/dom_storage/local_storage_context_mojo.cc b/content/browser/dom_storage/local_storage_context_mojo.cc
|
| index 240958579ab585c69272309a169e426239fea4f0..904a8e54ef794770bfe0b7f635c85fc011254ebf 100644
|
| --- a/content/browser/dom_storage/local_storage_context_mojo.cc
|
| +++ b/content/browser/dom_storage/local_storage_context_mojo.cc
|
| @@ -271,6 +271,11 @@ void LocalStorageContextMojo::DeleteStorageForPhysicalOrigin(
|
| }
|
|
|
| void LocalStorageContextMojo::Flush() {
|
| + if (connection_state_ != CONNECTION_FINISHED) {
|
| + RunWhenConnected(base::BindOnce(&LocalStorageContextMojo::Flush,
|
| + weak_ptr_factory_.GetWeakPtr()));
|
| + return;
|
| + }
|
| for (const auto& it : level_db_wrappers_)
|
| it.second->level_db_wrapper()->ScheduleImmediateCommit();
|
| }
|
|
|