refactor: migrates util::Promise to gin (#20871)
* refactor: use gin in Promise * refactor: separate Promise impl that returns nothing * refactor: use Promise<void> for promise that returns nothing * fix: methods should be able to run on both browser and renderer process * fix: should not pass base::StringPiece across threads * refactor: no more need to use different ResolvePromise for empty Promise * refactor: move Promise to gin_helper
This commit is contained in:
parent
bff113760a
commit
eaf2c61bef
48 changed files with 483 additions and 479 deletions
|
@ -16,7 +16,7 @@
|
|||
#include "base/values.h"
|
||||
#include "shell/browser/browser_observer.h"
|
||||
#include "shell/browser/window_list_observer.h"
|
||||
#include "shell/common/promise_util.h"
|
||||
#include "shell/common/gin_helper/promise.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
#include <windows.h>
|
||||
|
@ -304,7 +304,7 @@ class Browser : public WindowListObserver {
|
|||
|
||||
int badge_count_ = 0;
|
||||
|
||||
std::unique_ptr<util::Promise<void*>> ready_promise_;
|
||||
std::unique_ptr<gin_helper::Promise<void>> ready_promise_;
|
||||
|
||||
#if defined(OS_LINUX) || defined(OS_WIN)
|
||||
base::Value about_panel_options_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue