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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 353015: Last patch in removing MessageLoop* caching. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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: chrome/browser/safe_browsing/safe_browsing_service.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_service.cc (revision 30863)
+++ chrome/browser/safe_browsing/safe_browsing_service.cc (working copy)
@@ -210,7 +210,6 @@
ResourceType::Type resource_type,
UrlCheckResult result,
Client* client,
- MessageLoop* ui_loop,
int render_process_host_id,
int render_view_id) {
// Check if the user has already ignored our warning for this render_view
@@ -238,9 +237,10 @@
resource.render_view_id = render_view_id;
// The blocking page must be created from the UI thread.
- ui_loop->PostTask(FROM_HERE, NewRunnableMethod(this,
- &SafeBrowsingService::DoDisplayBlockingPage,
- resource));
+ ChromeThread::PostTask(
+ ChromeThread::UI, FROM_HERE,
+ NewRunnableMethod(
+ this, &SafeBrowsingService::DoDisplayBlockingPage, resource));
}
// Invoked on the UI thread.
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.h ('k') | chrome/browser/utility_process_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698