Commit 1d4538f1 authored by Adrienne Walker's avatar Adrienne Walker Committed by Commit Bot

indexeddb: use filesystem proxy for ChromiumEnv

When indexeddb moves to the storage service, this static getter will use
the file system proxy for the storage service instead of an unrestricted
one.

See: https://chromium-review.googlesource.com/c/chromium/src/+/2079642

Bug: 1052045
Change-Id: I8e02c888ea548d4fd60bda4c221f785a442a3aab
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2333057
Auto-Submit: enne <enne@chromium.org>
Reviewed-by: default avatarVictor Costan <pwnall@chromium.org>
Commit-Queue: enne <enne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#794671}
parent c6b748b9
...@@ -4,9 +4,12 @@ ...@@ -4,9 +4,12 @@
#include "content/browser/indexed_db/indexed_db_leveldb_env.h" #include "content/browser/indexed_db/indexed_db_leveldb_env.h"
#include "components/services/storage/filesystem_proxy_factory.h"
namespace content { namespace content {
IndexedDBLevelDBEnv::IndexedDBLevelDBEnv() : ChromiumEnv("LevelDBEnv.IDB") {} IndexedDBLevelDBEnv::IndexedDBLevelDBEnv()
: ChromiumEnv("LevelDBEnv.IDB", storage::CreateFilesystemProxy()) {}
IndexedDBLevelDBEnv* IndexedDBLevelDBEnv::Get() { IndexedDBLevelDBEnv* IndexedDBLevelDBEnv::Get() {
static base::NoDestructor<IndexedDBLevelDBEnv> g_leveldb_env; static base::NoDestructor<IndexedDBLevelDBEnv> g_leveldb_env;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment