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

Unified Diff: chrome/browser/metrics/variations_service.h

Issue 10392192: Remove content::URLFetcherDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More cleanup Created 8 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
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | chrome/browser/metrics/variations_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/variations_service.h
diff --git a/chrome/browser/metrics/variations_service.h b/chrome/browser/metrics/variations_service.h
index 76e1cb1d36d8af4a4dcb6295e0530e482958d930..b0009d27270e836629b92491af76f1c53589a765 100644
--- a/chrome/browser/metrics/variations_service.h
+++ b/chrome/browser/metrics/variations_service.h
@@ -10,18 +10,22 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
-#include "base/time.h"
#include "base/memory/scoped_ptr.h"
+#include "base/time.h"
#include "chrome/browser/metrics/proto/study.pb.h"
#include "chrome/browser/metrics/proto/trials_seed.pb.h"
#include "chrome/common/chrome_version_info.h"
-#include "content/public/common/url_fetcher_delegate.h"
+#include "net/url_request/url_fetcher_delegate.h"
class PrefService;
+namespace net {
+class URLFetcher;
+} // namespace net
+
// Used to setup field trials based on stored variations seed data, and fetch
// new seed data from the variations server.
-class VariationsService : public content::URLFetcherDelegate {
+class VariationsService : public net::URLFetcherDelegate {
public:
VariationsService();
virtual ~VariationsService();
@@ -35,7 +39,7 @@ class VariationsService : public content::URLFetcherDelegate {
// response.
void StartFetchingVariationsSeed();
- // content::URLFetcherDelegate implementation:
+ // net::URLFetcherDelegate implementation:
virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
// Register Variations related prefs in Local State.
@@ -80,7 +84,7 @@ class VariationsService : public content::URLFetcherDelegate {
// Contains the current seed request. Will only have a value while a request
// is pending, and will be reset by |OnURLFetchComplete|.
- scoped_ptr<content::URLFetcher> pending_seed_request_;
+ scoped_ptr<net::URLFetcher> pending_seed_request_;
// The variations seed data being used for this session.
// TODO(jwd): This should be removed. When the seed data is loaded, it will be
« no previous file with comments | « chrome/browser/metrics/metrics_service.cc ('k') | chrome/browser/metrics/variations_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698