Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6695)

Unified Diff: Source/modules/app_banner/AppBannerPromptResult.h

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/app_banner/AppBannerPromptResult.h
diff --git a/Source/modules/app_banner/AppBannerPromptResult.h b/Source/modules/app_banner/AppBannerPromptResult.h
index a949c7d086ae61e457d92f1a613c8417b724ee16..cee172250a99c75fbaf553e4203889270b963650 100644
--- a/Source/modules/app_banner/AppBannerPromptResult.h
+++ b/Source/modules/app_banner/AppBannerPromptResult.h
@@ -8,6 +8,7 @@
#include "bindings/core/v8/ScriptWrappable.h"
#include "public/platform/modules/app_banner/WebAppBannerPromptResult.h"
#include "wtf/Noncopyable.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/text/WTFString.h"
@@ -20,7 +21,7 @@ class AppBannerPromptResult final : public GarbageCollectedFinalized<AppBannerPr
WTF_MAKE_NONCOPYABLE(AppBannerPromptResult);
public:
// Support for CallbackPromiseAdapter:
- typedef blink::WebAppBannerPromptResult WebType;
+ using WebType = OwnPtr<blink::WebAppBannerPromptResult>;
static AppBannerPromptResult* take(ScriptPromiseResolver*, PassOwnPtr<WebAppBannerPromptResult> webInstance);
static AppBannerPromptResult* create(const AtomicString& platform, WebAppBannerPromptResult::Outcome outcome)

Powered by Google App Engine
This is Rietveld 408576698