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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 298863012: Use upstream libaddressinput in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Work in progress for suggestions impl. Created 6 years, 6 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/ui/autofill/autofill_dialog_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
index afd84e2348289a8ff2e3f2326b137850d9f9b1bb..87f7186eec7ddbca53ff697ddc4fb7d143b03305 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -35,8 +35,8 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/common/ssl_status.h"
-#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_validator.h"
-#include "third_party/libaddressinput/chromium/cpp/include/libaddressinput/load_rules_delegate.h"
+#include "third_party/libaddressinput/chromium/load_rules_delegate.h"
+#include "third_party/libaddressinput/chromium/preload_address_validator.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/models/simple_menu_model.h"
#include "ui/base/ui_base_types.h"
@@ -50,6 +50,12 @@ namespace content {
class WebContents;
}
+namespace i18n {
+namespace addressinput {
+struct AddressData;
+}
+}
+
namespace autofill {
class AutofillDataModel;
@@ -79,7 +85,7 @@ class AutofillDialogControllerImpl
public PersonalDataManagerObserver,
public AccountChooserModelDelegate,
public gfx::AnimationDelegate,
- public ::i18n::addressinput::LoadRulesDelegate {
+ public LoadRulesDelegate {
public:
virtual ~AutofillDialogControllerImpl();
@@ -218,7 +224,7 @@ class AutofillDialogControllerImpl
virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
- // ::i18n::addressinput::LoadRulesDelegate implementation.
+ // LoadRulesDelegate implementation.
virtual void OnAddressValidationRulesLoaded(const std::string& country_code,
bool success) OVERRIDE;
@@ -249,7 +255,7 @@ class AutofillDialogControllerImpl
virtual PersonalDataManager* GetManager() const;
// Returns an address validation helper. May be NULL during tests.
- virtual ::i18n::addressinput::AddressValidator* GetValidator();
+ virtual AddressValidator* GetValidator();
// Returns the WalletClient* this class uses to talk to Online Wallet. Exposed
// for testing.
@@ -653,7 +659,7 @@ class AutofillDialogControllerImpl
wallet::WalletClient wallet_client_;
// A helper to validate international address input.
- scoped_ptr< ::i18n::addressinput::AddressValidator> validator_;
+ scoped_ptr<AddressValidator> validator_;
// True if |this| has ever called GetWalletItems().
bool wallet_items_requested_;

Powered by Google App Engine
This is Rietveld 408576698