Commit 79c00421 authored by Mike Dougherty's avatar Mike Dougherty Committed by Commit Bot

Remove usage of no-op macro DEFINE_WEB_STATE_USER_DATA_KEY.

This CL removes macro usage from /ios/chrome/browser/web.

This CL was uploaded by git cl split.

R=eugenebut@chromium.org

Bug: 589840
Change-Id: Ide0379a61902c122eb75481ea4902a0b777ee76f
Reviewed-on: https://chromium-review.googlesource.com/c/1351078Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Mike Dougherty <michaeldo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611239}
parent 19f9eb4d
...@@ -30,8 +30,6 @@ ...@@ -30,8 +30,6 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
DEFINE_WEB_STATE_USER_DATA_KEY(BlockedPopupTabHelper);
namespace { namespace {
// The infobar to display when a popup is blocked. // The infobar to display when a popup is blocked.
class BlockPopupInfoBarDelegate : public ConfirmInfoBarDelegate { class BlockPopupInfoBarDelegate : public ConfirmInfoBarDelegate {
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
DEFINE_WEB_STATE_USER_DATA_KEY(DOMAlteringLock);
DOMAlteringLock::DOMAlteringLock(web::WebState* web_state) { DOMAlteringLock::DOMAlteringLock(web::WebState* web_state) {
} }
......
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
DEFINE_WEB_STATE_USER_DATA_KEY(FontSizeTabHelper);
FontSizeTabHelper::~FontSizeTabHelper() { FontSizeTabHelper::~FontSizeTabHelper() {
// Remove observer in destructor because |this| is captured by the usingBlock // Remove observer in destructor because |this| is captured by the usingBlock
// in calling [NSNotificationCenter.defaultCenter // in calling [NSNotificationCenter.defaultCenter
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
DEFINE_WEB_STATE_USER_DATA_KEY(ImageFetchTabHelper);
const char kUmaGetImageDataByJsResult[] = const char kUmaGetImageDataByJsResult[] =
"ContextMenu.iOS.GetImageDataByJsResult"; "ContextMenu.iOS.GetImageDataByJsResult";
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#include "base/metrics/histogram_macros.h" #include "base/metrics/histogram_macros.h"
#import "ios/web/public/web_state/web_state.h" #import "ios/web/public/web_state/web_state.h"
DEFINE_WEB_STATE_USER_DATA_KEY(LoadTimingTabHelper);
const char LoadTimingTabHelper::kOmnibarToPageLoadedMetric[] = const char LoadTimingTabHelper::kOmnibarToPageLoadedMetric[] =
"IOS.PageLoadTiming.OmnibarToPageLoaded"; "IOS.PageLoadTiming.OmnibarToPageLoaded";
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
DEFINE_WEB_STATE_USER_DATA_KEY(NetworkActivityIndicatorTabHelper);
// static // static
void NetworkActivityIndicatorTabHelper::CreateForWebState( void NetworkActivityIndicatorTabHelper::CreateForWebState(
web::WebState* web_state, web::WebState* web_state,
......
...@@ -21,8 +21,6 @@ const double kPlaceholderMaxDisplayTimeInSeconds = 1.5; ...@@ -21,8 +21,6 @@ const double kPlaceholderMaxDisplayTimeInSeconds = 1.5;
const NSTimeInterval kPlaceholderFadeOutAnimationLengthInSeconds = 0.5; const NSTimeInterval kPlaceholderFadeOutAnimationLengthInSeconds = 0.5;
} // namespace } // namespace
DEFINE_WEB_STATE_USER_DATA_KEY(PagePlaceholderTabHelper);
PagePlaceholderTabHelper::PagePlaceholderTabHelper(web::WebState* web_state) PagePlaceholderTabHelper::PagePlaceholderTabHelper(web::WebState* web_state)
: web_state_(web_state), weak_factory_(this) { : web_state_(web_state), weak_factory_(this) {
web_state_->AddObserver(this); web_state_->AddObserver(this);
......
...@@ -20,8 +20,6 @@ namespace { ...@@ -20,8 +20,6 @@ namespace {
const char kPrintCommandPrefix[] = "print"; const char kPrintCommandPrefix[] = "print";
} }
DEFINE_WEB_STATE_USER_DATA_KEY(PrintTabHelper);
// static // static
void PrintTabHelper::CreateForWebState(web::WebState* web_state, void PrintTabHelper::CreateForWebState(web::WebState* web_state,
id<WebStatePrinter> printer) { id<WebStatePrinter> printer) {
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
DEFINE_WEB_STATE_USER_DATA_KEY(RepostFormTabHelper);
RepostFormTabHelper::RepostFormTabHelper( RepostFormTabHelper::RepostFormTabHelper(
web::WebState* web_state, web::WebState* web_state,
id<RepostFormTabHelperDelegate> delegate) id<RepostFormTabHelperDelegate> delegate)
......
...@@ -26,8 +26,6 @@ ...@@ -26,8 +26,6 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
DEFINE_WEB_STATE_USER_DATA_KEY(SadTabTabHelper);
const double SadTabTabHelper::kDefaultRepeatFailureInterval = 60.0f; const double SadTabTabHelper::kDefaultRepeatFailureInterval = 60.0f;
namespace { namespace {
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
DEFINE_WEB_STATE_USER_DATA_KEY(TabIdTabHelper);
namespace { namespace {
// The key under which the tab ID is stored in the WebState's serializable user // The key under which the tab ID is stored in the WebState's serializable user
// data. // data.
......
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