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

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 20015: Make it easier to create new IPC channel types (i.e. renderer/plugin). Inste... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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 | « no previous file | chrome/browser/browser_accessibility.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | chrome/browser/browser_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698