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

Unified Diff: chrome/test/automation/automation_proxy.cc

Issue 5513001: Add a base class for objects that want to filter messages on the UI thread. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix possible race condition Created 10 years 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/test/automation/automation_proxy.cc
===================================================================
--- chrome/test/automation/automation_proxy.cc (revision 67520)
+++ chrome/test/automation/automation_proxy.cc (working copy)
@@ -157,10 +157,10 @@
use_named_interface ? IPC::Channel::MODE_NAMED_CLIENT
: IPC::Channel::MODE_SERVER,
this, // we are the listener
- new AutomationMessageFilter(this),
thread_->message_loop(),
true,
shutdown_event_.get()));
+ channel_->AddFilter(new AutomationMessageFilter(this));
}
void AutomationProxy::InitializeHandleTracker() {

Powered by Google App Engine
This is Rietveld 408576698