commit | 4b8909d5bc36cd6807e882f71bb2343ec585d7a8 | [log] [tgz] |
---|---|---|
author | Victor Costan <[email protected]> | Tue May 28 19:25:51 2019 |
committer | Commit Bot <[email protected]> | Tue May 28 19:25:51 2019 |
tree | 74b83b38a70dd964ec2ec07e79fef790e4c30010 | |
parent | d5f6e9eab86c83f462bbcb8a77b41381e821b2db [diff] [blame] |
IndexedDB: Remove unnecessary check in BrowserContext::SaveSessionState. Bug: 960603 Change-Id: If242cdce46717cb3e60fdf81b317bb30432b2a50 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1629930 Auto-Submit: Victor Costan <[email protected]> Reviewed-by: Kinuko Yasuda <[email protected]> Commit-Queue: Kinuko Yasuda <[email protected]> Cr-Commit-Position: refs/heads/master@{#663862}
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc index 74bac2767..32ad7ed 100644 --- a/content/browser/browser_context.cc +++ b/content/browser/browser_context.cc
@@ -617,12 +617,10 @@ scoped_refptr<IndexedDBContext> indexed_db_context = storage_partition->GetIndexedDBContext(); - // No task runner in unit tests. - if (indexed_db_context->TaskRunner()) { - indexed_db_context->TaskRunner()->PostTask( - FROM_HERE, base::BindOnce(&SaveSessionStateOnIndexedDBThread, - std::move(indexed_db_context))); - } + IndexedDBContext* const indexed_db_context_ptr = indexed_db_context.get(); + indexed_db_context_ptr->TaskRunner()->PostTask( + FROM_HERE, base::BindOnce(&SaveSessionStateOnIndexedDBThread, + std::move(indexed_db_context))); } void BrowserContext::SetDownloadManagerForTesting(