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

Unified Diff: content/renderer/pepper/url_request_info_util.cc

Issue 203853003: Merge weburlrequest_extradata_impl.cc/h into content/child/request_extra_data.cc/h (attempt #2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 9 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 | « content/child/web_url_loader_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/url_request_info_util.cc
diff --git a/content/renderer/pepper/url_request_info_util.cc b/content/renderer/pepper/url_request_info_util.cc
index 3059a613fac39139592ef4841b04aac07d453758..101fe042771b29ae0f422384235a3742d9a83a48 100644
--- a/content/renderer/pepper/url_request_info_util.cc
+++ b/content/renderer/pepper/url_request_info_util.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/strings/string_util.h"
+#include "content/child/request_extra_data.h"
#include "content/common/fileapi/file_system_messages.h"
#include "content/renderer/pepper/common.h"
#include "content/renderer/pepper/host_globals.h"
@@ -27,7 +28,6 @@
#include "third_party/WebKit/public/web/WebFrame.h"
#include "url/gurl.h"
#include "url/url_util.h"
-#include "webkit/child/weburlrequest_extradata_impl.h"
using ppapi::Resource;
using ppapi::URLRequestInfoData;
@@ -176,9 +176,11 @@ bool CreateWebURLRequest(PP_Instance instance,
if (data->has_custom_user_agent) {
bool was_after_preconnect_request = false;
- dest->setExtraData(new webkit_glue::WebURLRequestExtraDataImpl(
- WebString::fromUTF8(data->custom_user_agent),
- was_after_preconnect_request));
+ RequestExtraData* extra_data = new RequestExtraData();
+ extra_data->set_custom_user_agent(
+ WebString::fromUTF8(data->custom_user_agent));
+ extra_data->set_was_after_preconnect_request(was_after_preconnect_request);
+ dest->setExtraData(extra_data);
}
return true;
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698