| 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 c90d3e6f6375abb9c643455e26baffd89163c537..5a3ec57f708ae24b250502f8bafbd3ab4296fed9 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -1725,6 +1725,15 @@ const gfx::ImageSkia* ChromeContentBrowserClient::GetDefaultFavicon() {
|
| return rb.GetNativeImageNamed(IDR_DEFAULT_FAVICON).ToImageSkia();
|
| }
|
|
|
| +bool ChromeContentBrowserClient::IsDataSaverEnabled(
|
| + content::BrowserContext* browser_context) {
|
| + Profile* profile = Profile::FromBrowserContext(browser_context);
|
| + if (!profile)
|
| + return false;
|
| + PrefService* prefs = profile->GetPrefs();
|
| + return prefs && prefs->GetBoolean(prefs::kDataSaverEnabled);
|
| +}
|
| +
|
| bool ChromeContentBrowserClient::AllowAppCache(
|
| const GURL& manifest_url,
|
| const GURL& first_party,
|
|
|