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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 10554008: Move content::URLFetcher static functions to net::URLFetcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move URLFetcher back Created 8 years, 6 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: chrome/browser/metrics/metrics_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index ed7af636524f069535136e162da450cf3b44acfd..f8991fdffe62bd757731689cada1cb099b81f003 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -145,9 +145,9 @@
#include "chrome/browser/metrics/metrics_service.h"
#include "base/bind.h"
-#include "base/guid.h"
#include "base/callback.h"
#include "base/command_line.h"
+#include "base/guid.h"
#include "base/md5.h"
#include "base/metrics/histogram.h"
#include "base/rand_util.h"
@@ -188,8 +188,8 @@
#include "content/public/browser/notification_service.h"
#include "content/public/browser/plugin_service.h"
#include "content/public/browser/render_process_host.h"
-#include "content/public/common/url_fetcher.h"
#include "net/base/load_flags.h"
+#include "net/url_request/url_fetcher.h"
#include "webkit/plugins/webplugininfo.h"
// TODO(port): port browser_distribution.h.
@@ -1221,7 +1221,7 @@ void MetricsService::PrepareFetchWithStagedLog() {
// Prepare the XML version.
DCHECK(!current_fetch_xml_.get());
if (log_manager_.has_staged_log_xml()) {
- current_fetch_xml_.reset(content::URLFetcher::Create(
+ current_fetch_xml_.reset(net::URLFetcher::Create(
GURL(server_url_xml_), net::URLFetcher::POST, this));
current_fetch_xml_->SetRequestContext(
g_browser_process->system_request_context());
@@ -1236,7 +1236,7 @@ void MetricsService::PrepareFetchWithStagedLog() {
// Prepare the protobuf version.
DCHECK(!current_fetch_proto_.get());
if (log_manager_.has_staged_log_proto()) {
- current_fetch_proto_.reset(content::URLFetcher::Create(
+ current_fetch_proto_.reset(net::URLFetcher::Create(
GURL(server_url_proto_), net::URLFetcher::POST, this));
current_fetch_proto_->SetRequestContext(
g_browser_process->system_request_context());

Powered by Google App Engine
This is Rietveld 408576698