| Index: third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-test.js b/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| index 9eabb78f987f9ec84267b762c17a12152371819c..7ea86a6438c86500f3a641444c63e94f462ed1d0 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| +++ b/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| @@ -687,7 +687,7 @@ InspectorTest.takeAndOpenSnapshot = function(generator, callback)
|
| callback = InspectorTest.safeWrap(callback);
|
| var snapshot = generator();
|
| var profileType = Profiler.ProfileTypeRegistry.instance.heapSnapshotProfileType;
|
| - function pushGeneratedSnapshot(reportProgress, callback2)
|
| + function pushGeneratedSnapshot(reportProgress)
|
| {
|
| var profile = profileType.profileBeingRecorded();
|
| if (reportProgress) {
|
| @@ -696,11 +696,11 @@ InspectorTest.takeAndOpenSnapshot = function(generator, callback)
|
| }
|
| snapshot.snapshot.typeId = "HEAP";
|
| profileType._addHeapSnapshotChunk({data: JSON.stringify(snapshot)});
|
| - return Promise.resolve(callback2(null));
|
| + return Promise.resolve();
|
| }
|
| InspectorTest.override(InspectorTest.HeapProfilerAgent, "takeHeapSnapshot", pushGeneratedSnapshot);
|
| InspectorTest._takeAndOpenSnapshotCallback = callback;
|
| - profileType._takeHeapSnapshot(function() { });
|
| + profileType._takeHeapSnapshot();
|
| };
|
|
|
| InspectorTest.viewColumns = function()
|
|
|