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

Unified Diff: Source/modules/push_messaging/PushError.h

Issue 1234603003: CallbackPromiseAdapter types should be more compatible with WebCallbacks (1/3). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: retry! Created 5 years, 4 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
« no previous file with comments | « Source/modules/presentation/PresentationSession.h ('k') | Source/modules/push_messaging/PushError.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/push_messaging/PushError.h
diff --git a/Source/modules/push_messaging/PushError.h b/Source/modules/push_messaging/PushError.h
index e5f1623befc87a160d3ec2c8b89a2026adddce63..ee59bb9d732d6226725df3049ad87c1e8e52c9ad 100644
--- a/Source/modules/push_messaging/PushError.h
+++ b/Source/modules/push_messaging/PushError.h
@@ -8,6 +8,7 @@
#include "core/dom/DOMException.h"
#include "platform/heap/Handle.h"
#include "public/platform/modules/push_messaging/WebPushError.h"
+#include "wtf/OwnPtr.h"
#include "wtf/PassOwnPtr.h"
namespace blink {
@@ -18,8 +19,8 @@ class PushError {
WTF_MAKE_NONCOPYABLE(PushError);
public:
// For CallbackPromiseAdapter.
- typedef WebPushError WebType;
- static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebType> webError);
+ using WebType = OwnPtr<WebPushError>;
+ static DOMException* take(ScriptPromiseResolver*, PassOwnPtr<WebPushError> webError);
private:
PushError() = delete;
« no previous file with comments | « Source/modules/presentation/PresentationSession.h ('k') | Source/modules/push_messaging/PushError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698