refactor: make util::Promise type safe when chaining in native (#19809)
* refactor: make util::Promise type safe when chaining in native * fixup! refactor: make util::Promise type safe when chaining in native * chore: remove spare brackets
This commit is contained in:
parent
f7e3e1f97a
commit
6a3922d330
39 changed files with 275 additions and 343 deletions
|
@ -165,9 +165,9 @@ void Browser::DidFinishLaunching(const base::DictionaryValue& launch_info) {
|
|||
observer.OnFinishLaunching(launch_info);
|
||||
}
|
||||
|
||||
const util::Promise& Browser::WhenReady(v8::Isolate* isolate) {
|
||||
const util::Promise<void*>& Browser::WhenReady(v8::Isolate* isolate) {
|
||||
if (!ready_promise_) {
|
||||
ready_promise_.reset(new util::Promise(isolate));
|
||||
ready_promise_.reset(new util::Promise<void*>(isolate));
|
||||
if (is_ready()) {
|
||||
ready_promise_->Resolve();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue