| 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..3c596ebe3211a1d4b37168eb845e91c99f6ce7a3 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| +++ b/third_party/WebKit/LayoutTests/inspector/profiler/heap-snapshot-test.js
|
| @@ -687,18 +687,18 @@ InspectorTest.takeAndOpenSnapshot = function(generator, callback)
|
| callback = InspectorTest.safeWrap(callback);
|
| var snapshot = generator();
|
| var profileType = Profiler.ProfileTypeRegistry.instance.heapSnapshotProfileType;
|
| - function pushGeneratedSnapshot(reportProgress, callback2)
|
| + function pushGeneratedSnapshot(request)
|
| {
|
| var profile = profileType.profileBeingRecorded();
|
| - if (reportProgress) {
|
| + if (request.reportProgress) {
|
| profileType._reportHeapSnapshotProgress({data: {done: 50, total: 100, finished: false}});
|
| profileType._reportHeapSnapshotProgress({data: {done: 100, total: 100, finished: true}});
|
| }
|
| 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.override(InspectorTest.HeapProfilerAgent, "invoke_takeHeapSnapshot", pushGeneratedSnapshot);
|
| InspectorTest._takeAndOpenSnapshotCallback = callback;
|
| profileType._takeHeapSnapshot(function() { });
|
| };
|
|
|