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

Unified Diff: chrome/browser/chrome_content_browser_client.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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 0738496bfc2a5ce97414bf885c594f7055105be4..b67b6656da1b443e872d220f866f8f4ab197ad1a 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -208,6 +208,7 @@
#include "storage/browser/fileapi/external_mount_points.h"
#include "third_party/WebKit/public/platform/modules/installedapp/installed_app_provider.mojom.h"
#include "third_party/WebKit/public/platform/modules/webshare/webshare.mojom.h"
+#include "third_party/WebKit/public/web/WebDataSaverFlag.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/resources/grit/ui_resources.h"
@@ -2707,7 +2708,9 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs(
web_prefs->strict_powerful_feature_restrictions = true;
}
- web_prefs->data_saver_enabled = GetDataSaverEnabledPref(prefs);
+ web_prefs->data_saver_flag = GetDataSaverEnabledPref(prefs)
+ ? blink::WebDataSaverFlag::kEnabled
+ : blink::WebDataSaverFlag::kDisabled;
kinuko 2017/05/18 03:48:21 Ah sorry- I hadn't realized this change would prop
horo 2017/05/18 05:08:27 Are you saying "inconsistent"? I can rename Chrome
#if defined(OS_ANDROID)
content::WebContents* contents =

Powered by Google App Engine
This is Rietveld 408576698