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

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

Issue 1240763002: CallbackPromiseAdapter types should be more compatible with WebCallbacks (3/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 cee172250a99c75fbaf553e4203889270b963650..3c0c4bf2f25c7398295b08bd935a26b33f715671 100644
--- a/Source/modules/app_banner/AppBannerPromptResult.h
+++ b/Source/modules/app_banner/AppBannerPromptResult.h
@@ -21,8 +21,8 @@ class AppBannerPromptResult final : public GarbageCollectedFinalized<AppBannerPr
WTF_MAKE_NONCOPYABLE(AppBannerPromptResult);
public:
// Support for CallbackPromiseAdapter:
- using WebType = OwnPtr<blink::WebAppBannerPromptResult>;
- static AppBannerPromptResult* take(ScriptPromiseResolver*, PassOwnPtr<WebAppBannerPromptResult> webInstance);
+ using WebType = const blink::WebAppBannerPromptResult&;
+ static AppBannerPromptResult* take(ScriptPromiseResolver*, const WebAppBannerPromptResult& webInstance);
static AppBannerPromptResult* create(const AtomicString& platform, WebAppBannerPromptResult::Outcome outcome)
{

Powered by Google App Engine
This is Rietveld 408576698