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

Unified Diff: components/offline_pages/core/offline_page_client_policy.h

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_client_policy.h
diff --git a/components/offline_pages/core/offline_page_client_policy.h b/components/offline_pages/core/offline_page_client_policy.h
index 79c3e916c3dae631c5bc3ac3e545aa09c401a54c..db4e6e93f7566f2b1bdd79be4f7a7d745383e245 100644
--- a/components/offline_pages/core/offline_page_client_policy.h
+++ b/components/offline_pages/core/offline_page_client_policy.h
@@ -55,12 +55,15 @@ struct FeaturePolicy {
bool only_shown_in_original_tab;
// Whether pages are removed on user-initiated cache reset. Defaults to true.
bool is_removed_on_cache_reset;
+ // Whether to remove popup overlay that obstructs viewing normal content.
+ bool remove_popup_overlay;
FeaturePolicy()
: is_supported_by_download(false),
is_supported_by_recent_tabs(false),
only_shown_in_original_tab(false),
- is_removed_on_cache_reset(true){};
+ is_removed_on_cache_reset(true),
+ remove_popup_overlay(false) {}
};
// The struct describing policies for various namespaces (Bookmark, Last-N etc.)
@@ -144,6 +147,12 @@ class OfflinePageClientPolicyBuilder {
return *this;
}
+ OfflinePageClientPolicyBuilder& SetRemovePopupOverlay(
+ const bool remove_popup_overlay) {
+ policy_.feature_policy.remove_popup_overlay = remove_popup_overlay;
+ return *this;
+ }
+
private:
OfflinePageClientPolicy policy_;

Powered by Google App Engine
This is Rietveld 408576698