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

Unified Diff: chrome/browser/supervised_user/supervised_user_interstitial.h

Issue 1808653003: Move the supervised user error page to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to fix compile problem Created 4 years, 9 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/supervised_user/supervised_user_interstitial.h
diff --git a/chrome/browser/supervised_user/supervised_user_interstitial.h b/chrome/browser/supervised_user/supervised_user_interstitial.h
index f90bf1e67ddabbb228a49da6a90485374399bbf4..2948548132e9bbcab18b8d9f7ac8a2573ff0d309 100644
--- a/chrome/browser/supervised_user/supervised_user_interstitial.h
+++ b/chrome/browser/supervised_user/supervised_user_interstitial.h
@@ -12,6 +12,7 @@
#include "base/memory/weak_ptr.h"
#include "chrome/browser/supervised_user/supervised_user_service_observer.h"
#include "chrome/browser/supervised_user/supervised_user_url_filter.h"
+#include "components/supervised_user_error_page/supervised_user_error_page.h"
#include "content/public/browser/interstitial_page_delegate.h"
#include "url/gurl.h"
@@ -33,18 +34,18 @@ class SupervisedUserInterstitial : public content::InterstitialPageDelegate,
static void Show(content::WebContents* web_contents,
const GURL& url,
- SupervisedUserURLFilter::FilteringBehaviorReason reason,
+ supervised_user_error_page::FilteringBehaviorReason reason,
const base::Callback<void(bool)>& callback);
static std::string GetHTMLContents(
Profile* profile,
- SupervisedUserURLFilter::FilteringBehaviorReason reason);
+ supervised_user_error_page::FilteringBehaviorReason reason);
private:
SupervisedUserInterstitial(
content::WebContents* web_contents,
const GURL& url,
- SupervisedUserURLFilter::FilteringBehaviorReason reason,
+ supervised_user_error_page::FilteringBehaviorReason reason,
const base::Callback<void(bool)>& callback);
~SupervisedUserInterstitial() override;
@@ -80,7 +81,7 @@ class SupervisedUserInterstitial : public content::InterstitialPageDelegate,
content::InterstitialPage* interstitial_page_; // Owns us.
GURL url_;
- SupervisedUserURLFilter::FilteringBehaviorReason reason_;
+ supervised_user_error_page::FilteringBehaviorReason reason_;
base::Callback<void(bool)> callback_;

Powered by Google App Engine
This is Rietveld 408576698