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

Unified Diff: chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc

Issue 1977303003: Adds a feature to MHTML serialization that omits subframes and subresources marked no-store. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@no-store
Patch Set: Address dcheng's comments. Created 4 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
« no previous file with comments | « no previous file | content/browser/DEPS » ('j') | content/browser/DEPS » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
diff --git a/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc b/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
index ed0c1bfd3e99f5ed1819e3c2215258214f3b7bd1..770b9e99533692577152f7fe31ba638987a2decb 100644
--- a/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
+++ b/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
@@ -121,8 +121,8 @@ void OfflinePageMHTMLArchiver::GenerateMHTML(
GenerateFileName(url, base::UTF16ToUTF8(title), archive_id)));
content::MHTMLGenerationParams params(file_path);
- params.cache_control_policy =
- content::MHTMLCacheControlPolicy::FAIL_FOR_NO_STORE_MAIN_FRAME;
+ params.cache_control_policy = blink::WebFrameSerializerCacheControlPolicy::
+ SkipAnyFrameOrResourceMarkedNoStore;
params.use_binary_encoding = true;
web_contents_->GenerateMHTML(
« no previous file with comments | « no previous file | content/browser/DEPS » ('j') | content/browser/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698