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

Unified Diff: content/browser/service_worker/service_worker_browsertest.cc

Issue 2881073003: Support DataSaver for SharedWorker (Closed)
Patch Set: fix #include "public/web/WebDataSaverFlag.h" Created 3 years, 7 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
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:

Powered by Google App Engine
This is Rietveld 408576698