From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- toolkit/components/extensions/child/ext-storage.js | 28 +++++++--------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'toolkit/components/extensions/child') diff --git a/toolkit/components/extensions/child/ext-storage.js b/toolkit/components/extensions/child/ext-storage.js index 3d71a1cd60..c6c67a8736 100644 --- a/toolkit/components/extensions/child/ext-storage.js +++ b/toolkit/components/extensions/child/ext-storage.js @@ -28,28 +28,16 @@ this.storage = class extends ExtensionAPI { getLocalFileBackend(context, { deserialize, serialize }) { return { get(keys) { - return measureOp( - ExtensionTelemetry.storageLocalGetJson, - context.extension, - () => { - return context.childManager - .callParentAsyncFunction("storage.local.JSONFileBackend.get", [ - serialize(keys), - ]) - .then(deserialize); - } - ); + return context.childManager + .callParentAsyncFunction("storage.local.JSONFileBackend.get", [ + serialize(keys), + ]) + .then(deserialize); }, set(items) { - return measureOp( - ExtensionTelemetry.storageLocalSetJson, - context.extension, - () => { - return context.childManager.callParentAsyncFunction( - "storage.local.JSONFileBackend.set", - [serialize(items)] - ); - } + return context.childManager.callParentAsyncFunction( + "storage.local.JSONFileBackend.set", + [serialize(items)] ); }, remove(keys) { -- cgit v1.2.3