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

Unified Diff: content/browser/renderer_host/text_input_client_mac_unittest.mm

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 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: content/browser/renderer_host/text_input_client_mac_unittest.mm
===================================================================
--- content/browser/renderer_host/text_input_client_mac_unittest.mm (revision 271040)
+++ content/browser/renderer_host/text_input_client_mac_unittest.mm (working copy)
@@ -104,9 +104,8 @@
// Adapter for OnMessageReceived to ignore return type so it can be posted
// to a MessageLoop.
void CallOnMessageReceived(scoped_refptr<TextInputClientMessageFilter> filter,
- const IPC::Message& message,
- bool* message_was_ok) {
- filter->OnMessageReceived(message, message_was_ok);
+ const IPC::Message& message) {
+ filter->OnMessageReceived(message);
}
} // namespace
@@ -153,11 +152,10 @@
scoped_ptr<IPC::Message> message(
new TextInputClientReplyMsg_GotCharacterIndexForPoint(
widget()->GetRoutingID(), kNotFoundValue));
- bool message_ok = true;
// Set |WTF::notFound| to the index |kTaskDelayMs| after the previous
// setting.
PostTask(FROM_HERE,
- base::Bind(&CallOnMessageReceived, filter, *message, &message_ok),
+ base::Bind(&CallOnMessageReceived, filter, *message),
base::TimeDelta::FromMilliseconds(kTaskDelayMs) * 2);
NSUInteger index = service()->GetCharacterIndexAtPoint(

Powered by Google App Engine
This is Rietveld 408576698