summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-05 00:33:10 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-05 00:33:10 +0000
commit0bc2448f867ad96f0cffe102cc4fc13aede5c891 (patch)
tree5507c3968f1f0654eb5a5dce322a0841f214e864
parent886c8f35e1333eac1f5594fe2ad0441ad66d5a5f (diff)
downloadchromium_src-0bc2448f867ad96f0cffe102cc4fc13aede5c891.zip
chromium_src-0bc2448f867ad96f0cffe102cc4fc13aede5c891.tar.gz
chromium_src-0bc2448f867ad96f0cffe102cc4fc13aede5c891.tar.bz2
Fix pickle mismatch when getting redirects fails.
Review URL: http://codereview.chromium.org/669044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40695 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/automation/automation_provider.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index 85a8e0b..8c1de8c 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -996,12 +996,10 @@ void AutomationProvider::OnRedirectQueryComplete(
DCHECK(reply_message_ != NULL);
std::vector<GURL> redirects_gurl;
+ reply_message_->WriteBool(success);
if (success) {
- reply_message_->WriteBool(true);
for (size_t i = 0; i < redirects->size(); i++)
redirects_gurl.push_back(redirects->at(i));
- } else {
- reply_message_->WriteInt(-1); // Negative count indicates failure.
}
IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl);