Index: content/browser/service_worker/service_worker_browsertest.cc |
diff --git a/content/browser/service_worker/service_worker_browsertest.cc b/content/browser/service_worker/service_worker_browsertest.cc |
index 3f96ad842386c5c7acf27cc5b5d3c694de31f0aa..043ee55422d4b1b8ac08aa9aaec60af2e9199bf5 100644 |
--- a/content/browser/service_worker/service_worker_browsertest.cc |
+++ b/content/browser/service_worker/service_worker_browsertest.cc |
@@ -82,6 +82,7 @@ |
#include "storage/browser/blob/blob_data_snapshot.h" |
#include "storage/browser/blob/blob_reader.h" |
#include "storage/browser/blob/blob_storage_context.h" |
+#include "third_party/WebKit/public/web/WebDataSaverFlag.h" |
namespace content { |
@@ -1324,7 +1325,9 @@ class MockContentBrowserClient : public TestContentBrowserClient { |
void OverrideWebkitPrefs(RenderViewHost* render_view_host, |
WebPreferences* prefs) override { |
- prefs->data_saver_enabled = data_saver_enabled_; |
+ prefs->data_saver_flag = data_saver_enabled_ |
+ ? blink::WebDataSaverFlag::kEnabled |
+ : blink::WebDataSaverFlag::kDisabled; |
} |
private: |