Commit 7f7c7020 authored by Sylvain Defresne's avatar Sylvain Defresne Committed by Commit Bot

[ios] Use chrome_browser_state_forward.h in /ios/chrome/browser/payments

Instead of forward declaring ChromeBrowserState in the ios
namespace, use a header. This will allow moving the class
to the global namespace without having to change all the
forward declaration at the same time.

This CL was uploaded by git cl split.

R=mahmadi@chromium.org

Bug: 1042208
Change-Id: I4558781852c15c7eda3ca8b503bccee013cb462e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2010763
Auto-Submit: Sylvain Defresne <sdefresne@chromium.org>
Reviewed-by: default avatarMoe Ahmadi <mahmadi@chromium.org>
Commit-Queue: Moe Ahmadi <mahmadi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#733704}
parent 20f24073
......@@ -10,10 +10,7 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
namespace ios {
class ChromeBrowserState;
} // namespace ios
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
namespace payments {
class CanMakePaymentQuery;
......
......@@ -10,10 +10,7 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
namespace ios {
class ChromeBrowserState;
} // namespace ios
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
namespace payments {
class IOSPaymentInstrumentLauncher;
......
......@@ -10,10 +10,7 @@
#include "base/macros.h"
#include "base/no_destructor.h"
#include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
namespace ios {
class ChromeBrowserState;
} // namespace ios
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
namespace payments {
class PaymentRequestCache;
......
......@@ -22,6 +22,7 @@
#include "components/payments/core/payment_request_base_delegate.h"
#include "components/payments/core/payments_profile_comparator.h"
#include "components/payments/core/web_payment_request.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
#import "ios/chrome/browser/payments/ios_payment_instrument_finder.h"
#import "ios/chrome/browser/payments/payment_response_helper.h"
#include "url/gurl.h"
......@@ -42,10 +43,6 @@ class PaymentItem;
class PaymentShippingOption;
} // namespace payments
namespace ios {
class ChromeBrowserState;
} // namepsace ios
namespace web {
class WebState;
} // namespace web
......
......@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "components/autofill/core/browser/address_normalization_manager.h"
#include "components/autofill/core/browser/test_address_normalizer.h"
#include "ios/chrome/browser/browser_state/chrome_browser_state_forward.h"
#include "ios/chrome/browser/payments/payment_request.h"
namespace autofill {
......@@ -15,10 +16,6 @@ class PersonalDataManager;
class RegionDataLoader;
} // namespace autofill
namespace ios {
class ChromeBrowserState;
} // namespace ios
namespace payments {
class PaymentShippingOption;
class PaymentsProfileComparator;
......
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