refactor: natively promisify WebContents.prototype.takeHeapSnapshot (#18000)

This commit is contained in:
Milan Burda 2019-04-29 19:11:11 +02:00 committed by Jeremy Apthorp
parent 18b77a4de6
commit 7574f91f31
3 changed files with 22 additions and 26 deletions

View file

@ -294,8 +294,7 @@ class WebContents : public mate::TrackableObject<WebContents>,
// the specified URL.
void GrantOriginAccess(const GURL& url);
void TakeHeapSnapshot(const base::FilePath& file_path,
base::Callback<void(bool)>);
v8::Local<v8::Promise> TakeHeapSnapshot(const base::FilePath& file_path);
// Properties.
int32_t ID() const;