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

Unified Diff: chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h

Issue 2906493004: Chrome Cleaner UI: Use BrowserThread's DeleteOnIOThread for ChromePromptImpl (Closed)
Patch Set: Add comment explaining the use of bare new. 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
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h
diff --git a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h
index 8664d564609d8d60e2a8146ea11414cfedfdfb6b..6d050180aa00d09406f3d0cd8c1fecb51a027d25 100644
--- a/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h
+++ b/chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.h
@@ -20,6 +20,7 @@
#include "chrome/browser/safe_browsing/chrome_cleaner/reporter_runner_win.h"
#include "chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h"
#include "components/chrome_cleaner/public/interfaces/chrome_prompt.mojom.h"
+#include "content/public/browser/browser_thread.h"
namespace safe_browsing {
@@ -131,7 +132,8 @@ class ChromeCleanerRunner
base::OnceClosure on_connection_closed_;
ProcessDoneCallback on_process_done_;
- std::unique_ptr<ChromePromptImpl> chrome_prompt_impl_;
+ std::unique_ptr<ChromePromptImpl, content::BrowserThread::DeleteOnIOThread>
+ chrome_prompt_impl_;
};
// A delegate class used to override launching of the Cleaner proccess for
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/chrome_cleaner/chrome_cleaner_runner_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698