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

Unified Diff: third_party/WebKit/Source/modules/app_banner/AppBannerCallbacks.cpp

Issue 1483903002: [App Banner] Use appropriate type parameters for WebCallbacks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: third_party/WebKit/Source/modules/app_banner/AppBannerCallbacks.cpp
diff --git a/third_party/WebKit/Source/modules/app_banner/AppBannerCallbacks.cpp b/third_party/WebKit/Source/modules/app_banner/AppBannerCallbacks.cpp
index 3da3c29a6dc5eda679dcbf57ec0be562efc53c17..f01fcdbd601a40da953ac088a0d4cfc89ed300c5 100644
--- a/third_party/WebKit/Source/modules/app_banner/AppBannerCallbacks.cpp
+++ b/third_party/WebKit/Source/modules/app_banner/AppBannerCallbacks.cpp
@@ -12,9 +12,9 @@ AppBannerCallbacks::AppBannerCallbacks(UserChoiceProperty* userChoice)
{
}
-void AppBannerCallbacks::onSuccess(WebAppBannerPromptResult* result)
+void AppBannerCallbacks::onSuccess(const WebAppBannerPromptResult& result)
{
- m_userChoice->resolve(AppBannerPromptResult::take(adoptPtr(result)));
+ m_userChoice->resolve(AppBannerPromptResult::create(result.platform, result.outcome));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698