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

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

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 | « chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 bf936a4eb1715e855b8bfa9c3c13488d75a48f78..95eb4cf1dd599ffe2416e85674477fcb6f2534d9 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
@@ -11,6 +11,8 @@
#include "base/memory/ptr_util.h"
#include "content/public/browser/browser_thread.h"
+using content::BrowserThread;
+
namespace safe_browsing {
using chrome_cleaner::mojom::ChromePrompt;
@@ -25,10 +27,13 @@ ChromePromptImpl::ChromePromptImpl(ChromePromptRequest request,
: binding_(this, std::move(request)),
on_prompt_user_(std::move(on_prompt_user)) {
DCHECK(on_prompt_user_);
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
binding_.set_connection_error_handler(std::move(on_connection_closed));
}
-ChromePromptImpl::~ChromePromptImpl() {}
+ChromePromptImpl::~ChromePromptImpl() {
+ DCHECK_CURRENTLY_ON(BrowserThread::IO);
+}
void ChromePromptImpl::PromptUser(std::vector<UwSPtr> removable_uws_found,
ElevationStatus elevation_status,
« no previous file with comments | « chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698