Fix build

This commit is contained in:
Adam Barth
2016-10-14 16:01:23 -07:00
parent 2e7a8d13bb
commit 7b42d06850

View File

@@ -133,10 +133,10 @@ void PlatformViewAndroid::InvokePlatformMessageResponseCallback(
std::string response;
if (java_response)
response = base::android::ConvertJavaStringToUTF8(env, java_response);
auto response = std::move(it->second);
auto message_response = std::move(it->second);
pending_responses_.erase(it);
// TODO(abarth): There's an extra copy here.
response->Complete(
message_response->Complete(
std::vector<char>(response.data(), response.data() + response.size()));
}