| Index: chrome/test/base/ui_test_utils.cc
|
| diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
|
| index b60ecf9323e138be63563ad3a569500bca44485e..09352d2f108fd3ecbc450a2fa6d52f4399fb99db 100644
|
| --- a/chrome/test/base/ui_test_utils.cc
|
| +++ b/chrome/test/base/ui_test_utils.cc
|
| @@ -59,6 +59,7 @@
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/browser/web_contents_observer.h"
|
| #include "content/public/common/geoposition.h"
|
| +#include "content/public/common/resource_request_body.h"
|
| #include "content/public/test/browser_test_utils.h"
|
| #include "content/public/test/download_test_observer.h"
|
| #include "content/public/test/test_navigation_observer.h"
|
| @@ -158,8 +159,7 @@ void NavigateToURLWithPost(Browser* browser, const GURL& url) {
|
| ui::PAGE_TRANSITION_FORM_SUBMIT);
|
|
|
| std::string post_data("test=body");
|
| - params.browser_initiated_post_data =
|
| - base::RefCountedString::TakeString(&post_data);
|
| + params.post_data = content::ResourceRequestBody::CreateFromBytes(post_data);
|
| params.uses_post = true;
|
|
|
| NavigateToURL(¶ms);
|
|
|