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

Unified Diff: components/offline_pages/core/offline_page_model_impl.cc

Issue 2640923003: Remove popup overlay from MHTML when requested (Closed)
Patch Set: Created 3 years, 11 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: components/offline_pages/core/offline_page_model_impl.cc
diff --git a/components/offline_pages/core/offline_page_model_impl.cc b/components/offline_pages/core/offline_page_model_impl.cc
index 245db22586d8fa368606460bde0dbd865607adc2..c73111213e27b60ebd2a6f41d4e33989424fc161 100644
--- a/components/offline_pages/core/offline_page_model_impl.cc
+++ b/components/offline_pages/core/offline_page_model_impl.cc
@@ -361,8 +361,12 @@ void OfflinePageModelImpl::SavePage(
if (offline_id == kInvalidOfflineId)
offline_id = GenerateOfflineId();
+ OfflinePageArchiver::CreateArchiveParams create_archive_params;
+ create_archive_params.remove_popup_overlay =
+ policy_controller_->ShouldRemovePopupOverlay(
+ save_page_params.client_id.name_space);
archiver->CreateArchive(
- archives_dir_, offline_id,
+ archives_dir_, create_archive_params,
base::Bind(&OfflinePageModelImpl::OnCreateArchiveDone,
weak_ptr_factory_.GetWeakPtr(), save_page_params, offline_id,
GetCurrentTime(), callback));

Powered by Google App Engine
This is Rietveld 408576698