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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 1899803002: Offline Pages: Use 'binary encoding' to create MHTML, instead of base64. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/web_contents/web_contents_impl.cc
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 4802c80a60130596bffd6a7f8086dc8f02dd32ee..db9c3195384a9317bb8b3ba909786dd6152fbeb0 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2789,8 +2789,10 @@ void WebContentsImpl::SaveFrameWithHeaders(const GURL& url,
void WebContentsImpl::GenerateMHTML(
const base::FilePath& file,
+ bool use_binary_encoding,
const base::Callback<void(int64_t)>& callback) {
- MHTMLGenerationManager::GetInstance()->SaveMHTML(this, file, callback);
+ MHTMLGenerationManager::GetInstance()->SaveMHTML(this, use_binary_encoding,
+ file, callback);
}
const std::string& WebContentsImpl::GetContentsMimeType() const {

Powered by Google App Engine
This is Rietveld 408576698