Remove PrefetchConfiguration, add prefetch_prefs.h

Move prefetch preferences to the offline_pages component. This removes the need
for PrefetchConfiguration.

Change-Id: Ia5c5e4d908bfa9abbfc72f9c076a54fb6dc2daee
Reviewed-on: https://chromium-review.googlesource.com/1217350
Commit-Queue: Dan H <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Carlos Knippschild <[email protected]>
Cr-Commit-Position: refs/heads/master@{#591387}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 65eb9c6..38833ecaf 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -159,7 +159,7 @@
 #if BUILDFLAG(ENABLE_OFFLINE_PAGES)
 #include "chrome/browser/offline_pages/prefetch/offline_metrics_collector_impl.h"
 #include "chrome/browser/offline_pages/prefetch/prefetch_background_task_handler_impl.h"
-#include "chrome/browser/offline_pages/prefetch/prefetch_configuration_impl.h"
+#include "components/offline_pages/core/prefetch/prefetch_prefs.h"
 #endif
 
 #if BUILDFLAG(ENABLE_PLUGINS)
@@ -724,8 +724,7 @@
 
 #if BUILDFLAG(ENABLE_OFFLINE_PAGES)
   offline_pages::OfflineMetricsCollectorImpl::RegisterPrefs(registry);
-  offline_pages::PrefetchBackgroundTaskHandlerImpl::RegisterPrefs(registry);
-  offline_pages::PrefetchConfigurationImpl::RegisterPrefs(registry);
+  offline_pages::prefetch_prefs::RegisterPrefs(registry);
 #endif
 
 #if defined(OS_ANDROID)