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

Unified Diff: components/offline_pages/background/request_coordinator.cc

Issue 2342443006: [Offline pages] Use the new policy bits (Closed)
Patch Set: i think i got it! Made sure it compiles Created 4 years, 2 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/background/request_coordinator.cc
diff --git a/components/offline_pages/background/request_coordinator.cc b/components/offline_pages/background/request_coordinator.cc
index 8aae54cfb739b5b3eadb46cd7abc254bd0ee4f1a..529ab31b623c9bf38ac29f4b597a860824b9d6f5 100644
--- a/components/offline_pages/background/request_coordinator.cc
+++ b/components/offline_pages/background/request_coordinator.cc
@@ -17,6 +17,7 @@
#include "components/offline_pages/background/offliner_policy.h"
#include "components/offline_pages/background/request_picker.h"
#include "components/offline_pages/background/save_page_request.h"
+#include "components/offline_pages/client_policy_controller.h"
#include "components/offline_pages/offline_page_item.h"
#include "components/offline_pages/offline_page_model.h"
@@ -92,6 +93,7 @@ RequestCoordinator::RequestCoordinator(
factory_(std::move(factory)),
queue_(std::move(queue)),
scheduler_(std::move(scheduler)),
+ policy_controller_(new ClientPolicyController()),
network_quality_estimator_(network_quality_estimator),
active_request_(nullptr),
last_offlining_status_(Offliner::RequestStatus::UNKNOWN),
@@ -599,6 +601,10 @@ void RequestCoordinator::GetOffliner() {
}
}
+ClientPolicyController* RequestCoordinator::GetPolicyController() {
+ return policy_controller_.get();
+}
+
void RequestCoordinator::Shutdown() {
network_quality_estimator_ = nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698