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

Unified Diff: chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc

Issue 2867723002: Use OnceCallback on Mojo interfaces in //components/chrome_cleaner (Closed)
Patch Set: rebase. +#include. fix Created 3 years, 7 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: chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc b/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc
index 002d24f1008312be911e42d668b038b147e1cc02..6d20cda9b8e431b4f828a840982e15937fcefec0 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc
+++ b/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc
@@ -22,13 +22,12 @@ ChromePromptImpl::ChromePromptImpl(ChromePromptRequest request,
ChromePromptImpl::~ChromePromptImpl() {}
-void ChromePromptImpl::PromptUser(
- std::vector<UwSPtr> removable_uws_found,
- ElevationStatus elevation_status,
- const ChromePrompt::PromptUserCallback& callback) {
+void ChromePromptImpl::PromptUser(std::vector<UwSPtr> removable_uws_found,
+ ElevationStatus elevation_status,
+ ChromePrompt::PromptUserCallback callback) {
// Placeholder. The actual implementation will show the prompt dialog to the
// user and invoke this callback depending on the user's response.
- callback.Run(PromptAcceptance::DENIED);
+ std::move(callback).Run(PromptAcceptance::DENIED);
}
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698