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

Unified Diff: chrome/browser/sync/glue/sync_backend_host_core.cc

Issue 1339943003: Revert "Report data usage UMA for Chrome services" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: chrome/browser/sync/glue/sync_backend_host_core.cc
diff --git a/chrome/browser/sync/glue/sync_backend_host_core.cc b/chrome/browser/sync/glue/sync_backend_host_core.cc
index 4f5cd4518d1fd143c2d055eba8b7f5269fa8ad82..4634c8178ddffb403b7909aadeda6c360d15e29c 100644
--- a/chrome/browser/sync/glue/sync_backend_host_core.cc
+++ b/chrome/browser/sync/glue/sync_backend_host_core.cc
@@ -4,14 +4,12 @@
#include "chrome/browser/sync/glue/sync_backend_host_core.h"
-#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/location.h"
#include "base/metrics/histogram.h"
#include "base/single_thread_task_runner.h"
#include "chrome/browser/sync/glue/local_device_info_provider_impl.h"
#include "chrome/browser/sync/glue/sync_backend_registrar.h"
-#include "components/data_use_measurement/core/data_use_user_data.h"
#include "components/invalidation/public/invalidation_util.h"
#include "components/invalidation/public/object_id_invalidation_map.h"
#include "components/sync_driver/invalidation_adapter.h"
@@ -40,10 +38,6 @@ namespace syncer {
class InternalComponentsFactory;
} // namespace syncer
-namespace net {
-class URLFetcher;
-}
-
namespace {
// Enums for UMAs.
@@ -55,11 +49,6 @@ enum SyncBackendInitState {
SYNC_BACKEND_INIT_STATE_COUNT
};
-void BindFetcherToDataTracker(net::URLFetcher* fetcher) {
- data_use_measurement::DataUseUserData::AttachToFetcher(
- fetcher, data_use_measurement::DataUseUserData::SYNC);
-}
-
} // namespace
namespace browser_sync {
@@ -436,8 +425,7 @@ void SyncBackendHostCore::DoInitialize(
// Finish initializing the HttpBridgeFactory. We do this here because
// building the user agent may block on some platforms.
- options->http_bridge_factory->Init(options->sync_user_agent,
- base::Bind(&BindFetcherToDataTracker));
+ options->http_bridge_factory->Init(options->sync_user_agent);
// Blow away the partial or corrupt sync data folder before doing any more
// initialization, if necessary.
« no previous file with comments | « chrome/browser/spellchecker/spelling_service_client.cc ('k') | chrome/browser/sync/test/test_http_bridge_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698