commit | 2c704cdc7272465013ab020debe6b059e72bfc7d | [log] [tgz] |
---|---|---|
author | Simon Zünd <[email protected]> | Thu Jun 04 09:08:35 2020 |
committer | Commit Bot <[email protected]> | Thu Jun 04 10:30:01 2020 |
tree | df44f6500dc8f1f19a60d700fc7a4609d7c44a82 | |
parent | dfe3e2814532284e84c1a2f57106b4d979eed42a [diff] [blame] |
[cleanup] Move Date#toISO8601Compact to DateUtilities [email protected] Bug: chromium:1050549 Change-Id: I445d6d0670ecfc2efa6ecae350b3bc48c1ddce96 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2228524 Reviewed-by: Jack Franklin <[email protected]> Commit-Queue: Simon Zünd <[email protected]>
diff --git a/front_end/resources/BackgroundServiceView.js b/front_end/resources/BackgroundServiceView.js index b3fc0c1..7a8af7f 100644 --- a/front_end/resources/BackgroundServiceView.js +++ b/front_end/resources/BackgroundServiceView.js
@@ -5,6 +5,7 @@ import * as Bindings from '../bindings/bindings.js'; import * as Common from '../common/common.js'; // eslint-disable-line no-unused-vars import * as DataGrid from '../data_grid/data_grid.js'; +import * as Platform from '../platform/platform.js'; import * as SDK from '../sdk/sdk.js'; import * as UI from '../ui/ui.js'; @@ -364,7 +365,7 @@ * Saves all currently displayed events in a file (JSON format). */ async _saveToFile() { - const fileName = `${this._serviceName}-${new Date().toISO8601Compact()}.json`; + const fileName = `${this._serviceName}-${Platform.DateUtilities.toISO8601Compact(new Date())}.json`; const stream = new Bindings.FileUtils.FileOutputStream(); const accepted = await stream.open(fileName);