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

Unified Diff: components/update_client/request_sender.cc

Issue 808773005: Move most of the component updater artifacts to update_client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/update_client/request_sender.cc
diff --git a/components/component_updater/request_sender.cc b/components/update_client/request_sender.cc
similarity index 81%
rename from components/component_updater/request_sender.cc
rename to components/update_client/request_sender.cc
index da6f7940db70f9898e6b7eebade3f14833834508..726c2faea6d23174d9ccb80048832106033a6e9d 100644
--- a/components/component_updater/request_sender.cc
+++ b/components/update_client/request_sender.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/component_updater/request_sender.h"
+#include "components/update_client/request_sender.h"
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -10,11 +10,11 @@
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
-#include "components/component_updater/component_updater_configurator.h"
-#include "components/component_updater/component_updater_utils.h"
+#include "components/update_client/configurator.h"
+#include "components/update_client/utils.h"
#include "net/url_request/url_fetcher.h"
-namespace component_updater {
+namespace update_client {
RequestSender::RequestSender(const Configurator& config) : config_(config) {
}
@@ -46,8 +46,8 @@ void RequestSender::SendInternal() {
DCHECK(cur_url_->is_valid());
DCHECK(thread_checker_.CalledOnValidThread());
- url_fetcher_.reset(SendProtocolRequest(
- *cur_url_, request_string_, this, config_.RequestContext()));
+ url_fetcher_.reset(SendProtocolRequest(*cur_url_, request_string_, this,
+ config_.RequestContext()));
}
void RequestSender::OnURLFetchComplete(const net::URLFetcher* source) {
@@ -67,4 +67,4 @@ void RequestSender::OnURLFetchComplete(const net::URLFetcher* source) {
request_sender_callback_.Run(source);
}
-} // namespace component_updater
+} // namespace update_client

Powered by Google App Engine
This is Rietveld 408576698