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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2776493005: Convert SupervisedUserResourceThrottle to a NavigationThrottle. (Closed)
Patch Set: Response to comments Created 3 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 6f4e66500156f32a069b4792e265a539281612c8..3010f5a6c9b67e9eb7839e20d5c54b91c92a1e55 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -391,6 +391,10 @@
#include "chrome/browser/metrics/leak_detector/leak_detector_remote_controller.h"
#endif
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
+#include "chrome/browser/supervised_user/supervised_user_navigation_throttle.h"
+#endif
+
using base::FileDescriptor;
using content::BrowserThread;
using content::BrowserURLHandler;
@@ -3374,6 +3378,13 @@ ChromeContentBrowserClient::CreateThrottlesForNavigation(
throttles.push_back(std::move(flash_url_throttle));
#endif
+#if BUILDFLAG(ENABLE_SUPERVISED_USERS)
+ std::unique_ptr<content::NavigationThrottle> supervised_user_throttle =
+ SupervisedUserNavigationThrottle::MaybeCreateThrottleFor(handle);
+ if (supervised_user_throttle)
+ throttles.push_back(std::move(supervised_user_throttle));
+#endif
+
#if defined(OS_ANDROID)
// TODO(davidben): This is insufficient to integrate with prerender properly.
// https://crbug.com/370595

Powered by Google App Engine
This is Rietveld 408576698