Index: webkit/plugins/ppapi/ppb_url_request_info_impl.cc |
=================================================================== |
--- webkit/plugins/ppapi/ppb_url_request_info_impl.cc (revision 147916) |
+++ webkit/plugins/ppapi/ppb_url_request_info_impl.cc (working copy) |
@@ -120,6 +120,13 @@ |
WebString::fromUTF8(data().custom_content_transfer_encoding)); |
} |
+ if (data().has_custom_user_agent) { |
+ // TODO(viettrungluu): If |custom_user_agent| is empty, we're supposed to |
+ // arrange for User-Agent to be omitted; this probably won't do that. |
+ dest->addHTTPHeaderField(WebString::fromUTF8("User-Agent"), |
+ WebString::fromUTF8(data().custom_user_agent)); |
+ } |
+ |
return true; |
} |