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

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: Moar 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
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..357701aa7e624652ee78e347f4b85cc2e55ee543 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 = content::MHTMLCacheControlPolicy::
+ SKIP_ANY_FRAME_OR_RESOURCE_MARKED_NO_STORE;
params.use_binary_encoding = true;
web_contents_->GenerateMHTML(

Powered by Google App Engine
This is Rietveld 408576698