Index: chrome/browser/automation/automation_provider.cc |
=================================================================== |
--- chrome/browser/automation/automation_provider.cc (revision 9103) |
+++ chrome/browser/automation/automation_provider.cc (working copy) |
@@ -1071,7 +1071,9 @@ |
IPC::Message* msg = new IPC::Message( |
message.routing_id(), AutomationMsg_RedirectsFromResponse::ID, |
IPC::Message::PRIORITY_NORMAL); |
- msg->WriteInt(-1); // Negative string count indicates an error. |
+ msg->WriteBool(false); |
+ std::vector<GURL> empty; |
+ ParamTraits<std::vector<GURL>>::Write(msg, empty); |
Send(msg); |
} |
@@ -1554,14 +1556,17 @@ |
IPC::Message* msg = new IPC::Message(redirect_query_routing_id_, |
AutomationMsg_RedirectsFromResponse::ID, |
IPC::Message::PRIORITY_NORMAL); |
+ std::vector<GURL> redirects_gurl; |
if (success) { |
- msg->WriteInt(static_cast<int>(redirects->size())); |
+ msg->WriteBool(true); |
for (size_t i = 0; i < redirects->size(); i++) |
- IPC::ParamTraits<GURL>::Write(msg, redirects->at(i)); |
+ redirects_gurl.push_back(redirects->at(i)); |
} else { |
msg->WriteInt(-1); // Negative count indicates failure. |
} |
+ ParamTraits<std::vector<GURL>>::Write(msg, redirects_gurl); |
+ |
Send(msg); |
redirect_query_ = NULL; |
} |