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

Unified Diff: components/offline_pages/core/prefetch/get_operation_request.cc

Issue 2921783002: [Offline Prefetch] Pass api key to offline prefetch requests (Closed)
Patch Set: Rebase Created 3 years, 7 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/core/prefetch/get_operation_request.cc
diff --git a/components/offline_pages/core/prefetch/get_operation_request.cc b/components/offline_pages/core/prefetch/get_operation_request.cc
index 1f3a78ac5b59cc3b4359ebd5d77b69024752759c..59865ffcd8c647026fba82468534e6180af2b465 100644
--- a/components/offline_pages/core/prefetch/get_operation_request.cc
+++ b/components/offline_pages/core/prefetch/get_operation_request.cc
@@ -20,13 +20,14 @@ const char kGetOperationURLPath[] = "v1/operations/";
GetOperationRequest::GetOperationRequest(
const std::string& name,
+ version_info::Channel channel,
net::URLRequestContextGetter* request_context_getter,
const PrefetchRequestFinishedCallback& callback)
: callback_(callback) {
std::string path(kGetOperationURLPath);
path += name;
fetcher_ = PrefetchRequestFetcher::CreateForGet(
- path, request_context_getter,
+ path, channel, request_context_getter,
base::Bind(&GetOperationRequest::OnCompleted,
// Fetcher is owned by this instance.
base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698