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

Unified Diff: chrome/renderer/banners/app_banner_client.cc

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
« no previous file with comments | « no previous file | components/test_runner/app_banner_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/banners/app_banner_client.cc
diff --git a/chrome/renderer/banners/app_banner_client.cc b/chrome/renderer/banners/app_banner_client.cc
index 28a9b67ae8507d287cac3068901d60fe852f6bae..215fa29026b0b26c401c519a7daea831ca3b8e72 100644
--- a/chrome/renderer/banners/app_banner_client.cc
+++ b/chrome/renderer/banners/app_banner_client.cc
@@ -53,11 +53,8 @@ void AppBannerClient::ResolveEvent(
if (!callbacks)
return;
- scoped_ptr<blink::WebAppBannerPromptResult> result(
- new blink::WebAppBannerPromptResult(
- blink::WebString::fromUTF8(platform),
- outcome));
- callbacks->onSuccess(result.release());
+ callbacks->onSuccess(blink::WebAppBannerPromptResult(
+ blink::WebString::fromUTF8(platform), outcome));
banner_callbacks_.Remove(request_id);
}
« no previous file with comments | « no previous file | components/test_runner/app_banner_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698