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

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

Issue 2342443006: [Offline pages] Use the new policy bits (Closed)
Patch Set: fix download bridge and ntp suggestions to use correct policy controller Created 4 years, 3 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 814263ae519a46da9947527e5237226f06386109..bd0306d241493dacd3b74e8eda5dd2d674d31c4d 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),
@@ -611,6 +613,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