Commit 79309c78 authored by Mugdha Lakhani's avatar Mugdha Lakhani Committed by Commit Bot

[BackgroundSync] Componentize BackgroundSyncMetrics.

Pre-work for this has been done in:
https://chromium-review.googlesource.com/c/chromium/src/+/2443089

This moves BackgroundSyncMetrics to components and updates references.

Bug: 1087486
Change-Id: I175de6d5ff224ba2e9f590234b98bd4a2de952e2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2445874
Commit-Queue: Mugdha Lakhani <nator@chromium.org>
Reviewed-by: default avatarRayan Kanso <rayankans@chromium.org>
Reviewed-by: default avatarMike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814598}
parent 2ecdcb83
......@@ -165,8 +165,6 @@ static_library("browser") {
"background_sync/background_sync_controller_impl.h",
"background_sync/background_sync_delegate_impl.cc",
"background_sync/background_sync_delegate_impl.h",
"background_sync/background_sync_metrics.cc",
"background_sync/background_sync_metrics.h",
"background_sync/periodic_background_sync_permission_context.cc",
"background_sync/periodic_background_sync_permission_context.h",
"bad_message.cc",
......
......@@ -14,9 +14,9 @@
#include "base/macros.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "chrome/browser/background_sync/background_sync_metrics.h"
#include "chrome/browser/engagement/site_engagement_observer.h"
#include "components/background_sync/background_sync_delegate.h"
#include "components/background_sync/background_sync_metrics.h"
#include "components/content_settings/core/browser/content_settings_observer.h"
#include "components/keep_alive_registry/keep_alive_types.h"
#include "components/keep_alive_registry/scoped_keep_alive.h"
......
......@@ -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 "chrome/browser/background_sync/background_sync_metrics.h"
#include "components/background_sync/background_sync_metrics.h"
#include <memory>
......
......@@ -5,6 +5,8 @@
static_library("background_sync") {
sources = [
"background_sync_delegate.h",
"background_sync_metrics.cc",
"background_sync_metrics.h",
"background_sync_permission_context.cc",
"background_sync_permission_context.h",
]
......@@ -13,6 +15,7 @@ static_library("background_sync") {
"//components/content_settings/core/browser",
"//components/content_settings/core/common",
"//components/permissions",
"//services/metrics/public/cpp:ukm_builders",
"//third_party/blink/public/common:headers",
]
}
......
......@@ -4,5 +4,5 @@ include_rules = [
"+content/public/browser",
"+content/public/test",
"+services/metrics/public",
"+third_party/blink/public/mojom",
"+third_party/blink/public",
]
......@@ -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 "chrome/browser/background_sync/background_sync_metrics.h"
#include "components/background_sync/background_sync_metrics.h"
#include "base/bind.h"
#include "components/background_sync/background_sync_delegate.h"
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_METRICS_H_
#define CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_METRICS_H_
#ifndef COMPONENTS_BACKGROUND_SYNC_BACKGROUND_SYNC_METRICS_H_
#define COMPONENTS_BACKGROUND_SYNC_BACKGROUND_SYNC_METRICS_H_
#include "base/callback.h"
#include "base/macros.h"
......@@ -87,4 +87,4 @@ class BackgroundSyncMetrics {
DISALLOW_COPY_AND_ASSIGN(BackgroundSyncMetrics);
};
#endif // CHROME_BROWSER_BACKGROUND_SYNC_BACKGROUND_SYNC_METRICS_H_
#endif // COMPONENTS_BACKGROUND_SYNC_BACKGROUND_SYNC_METRICS_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment