Commit b3fc6e74 authored by Francois Doray's avatar Francois Doray Committed by Commit Bot

Remove DEFINE_WEB_CONTENTS_USER_DATA_KEY in //components.

It is no longer to invoke the DEFINE_WEB_CONTENTS_USER_DATA_KEY macro
to define a global variable from which the key of a
WebContentsUserData is derived. The key is now derived from a static
local variable.

This CL was uploaded by git cl split.

R=sdefresne@chromium.org

Bug: 589840
Change-Id: I7c899d2cfdb3a5c38f6d9a136b474c19f6370c71
Reviewed-on: https://chromium-review.googlesource.com/1150287Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Commit-Queue: François Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#578310}
parent d5217e9e
......@@ -13,9 +13,6 @@
#include "content/public/browser/web_contents_user_data.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(
dom_distiller::DistillabilityDriver);
namespace dom_distiller {
// Implementation of the Mojo DistillabilityService. This is called by the
......
......@@ -10,8 +10,6 @@
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(dom_distiller::WebContentsMainFrameObserver);
namespace dom_distiller {
WebContentsMainFrameObserver::WebContentsMainFrameObserver(
......
......@@ -6,8 +6,6 @@
#include <memory>
DEFINE_WEB_CONTENTS_USER_DATA_KEY(download::DownloadNavigationObserver);
namespace download {
// static
......
......@@ -20,8 +20,6 @@
#include "third_party/blink/public/common/manifest/manifest.h"
#include "ui/gfx/image/image.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(favicon::ContentFaviconDriver);
namespace favicon {
namespace {
......
......@@ -33,5 +33,3 @@ ContextID ContextIDForWebContents(content::WebContents* web_contents) {
}
} // namespace history
DEFINE_WEB_CONTENTS_USER_DATA_KEY(WebContentsContext);
......@@ -10,8 +10,6 @@
#include "content/public/browser/navigation_details.h"
#include "content/public/browser/navigation_entry.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(history::WebContentsTopSitesObserver);
namespace history {
// static
......
......@@ -13,8 +13,6 @@
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/web_contents.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(payments::PaymentRequestWebContentsManager);
namespace payments {
PaymentRequestWebContentsManager::~PaymentRequestWebContentsManager() {}
......
......@@ -15,8 +15,6 @@
#include "ui/gfx/geometry/point_f.h"
#include "ui/strings/grit/ui_strings.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(pdf::PDFWebContentsHelper);
namespace pdf {
// static
......
......@@ -19,8 +19,6 @@
#include "printing/printing_utils.h"
#include "services/service_manager/public/cpp/connector.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(printing::PrintCompositeClient);
namespace {
uint64_t GenerateFrameGuid(int process_id, int frame_id) {
......
......@@ -24,8 +24,6 @@
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/simple_url_loader.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(safe_browsing::AdSamplerTrigger);
namespace safe_browsing {
// Param name of the denominator for controlling sampling frequency.
......
......@@ -18,8 +18,6 @@
#include "content/public/browser/web_contents.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(safe_browsing::SuspiciousSiteTrigger);
namespace safe_browsing {
namespace {
......
......@@ -15,9 +15,6 @@
#include "content/public/browser/browser_thread.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(
safe_browsing::TriggerManagerWebContentsHelper);
namespace safe_browsing {
namespace {
......
......@@ -8,9 +8,6 @@
#include "components/security_interstitials/core/controller_client.h"
#include "content/public/browser/navigation_handle.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(
security_interstitials::SecurityInterstitialTabHelper);
namespace security_interstitials {
SecurityInterstitialTabHelper::~SecurityInterstitialTabHelper() {}
......
......@@ -7,8 +7,6 @@
#include "base/memory/ptr_util.h"
#include "content/public/browser/navigation_handle.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(subresource_filter::NavigationConsoleLogger);
namespace subresource_filter {
// static
......
......@@ -6,9 +6,6 @@
#include "components/subresource_filter/core/common/activation_state.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(
subresource_filter::SubresourceFilterObserverManager);
namespace subresource_filter {
SubresourceFilterObserverManager::SubresourceFilterObserverManager(
......
......@@ -232,6 +232,3 @@ SourceId GetSourceIdForWebContentsDocument(
}
} // namespace ukm
DEFINE_WEB_CONTENTS_USER_DATA_KEY(
ukm::internal::SourceUrlRecorderWebContentsObserver);
......@@ -17,8 +17,6 @@
using content::WebContents;
DEFINE_WEB_CONTENTS_USER_DATA_KEY(web_modal::WebContentsModalDialogManager);
namespace web_modal {
WebContentsModalDialogManager::~WebContentsModalDialogManager() {
......
......@@ -19,8 +19,6 @@
#include "content/public/common/page_zoom.h"
#include "net/base/url_util.h"
DEFINE_WEB_CONTENTS_USER_DATA_KEY(zoom::ZoomController);
using content::BrowserThread;
namespace zoom {
......
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