Chromium Code Reviews| Index: chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc |
| diff --git a/chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc b/chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc |
| index bda7395d96010f37a2b0709685b2641e71df1e1c..f831d7a003f2b618ac33354df925519b9016eb19 100644 |
| --- a/chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc |
| +++ b/chrome/browser/data_use_measurement/chrome_data_use_ascriber_unittest.cc |
| @@ -12,6 +12,7 @@ |
| #include "components/data_use_measurement/core/data_use_recorder.h" |
| #include "content/public/browser/resource_request_info.h" |
| #include "content/public/common/browser_side_navigation_policy.h" |
| +#include "content/public/common/previews_state.h" |
| #include "content/public/common/process_type.h" |
| #include "content/public/test/mock_resource_context.h" |
| #include "content/public/test/test_browser_thread_bundle.h" |
| @@ -57,17 +58,14 @@ class ChromeDataUseAscriberTest : public testing::Test { |
| context()->CreateRequest(GURL(url), net::IDLE, nullptr); |
| // TODO(kundaji): Allow request_id to be specified in AllocateForTesting. |
| content::ResourceRequestInfo::AllocateForTesting( |
| - request.get(), |
| - content::RESOURCE_TYPE_MAIN_FRAME, |
| - resource_context(), |
| + request.get(), content::RESOURCE_TYPE_MAIN_FRAME, resource_context(), |
| render_process_id, |
| -1, // render_view_id |
| - render_frame_id, |
| - is_main_frame, |
| - false, // parent_is_main_frame |
| - false, // allow_download |
| - true, // is_async |
| - false); // is_using_lofi |
| + render_frame_id, is_main_frame, |
| + false, // parent_is_main_frame |
| + false, // allow_download |
| + true, // is_async |
| + content::PREVIEWS_OFF); // previews_state |
|
Nico
2017/01/09 22:35:03
nit: remove now-useless comment for PREVIEWS_OFF
megjablon
2017/01/10 22:30:01
Done.
|
| return request; |
| } |