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

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

Issue 23033016: Remove autocheckout code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more deletes, and Ilya review. Created 7 years, 4 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 bd3dcdbdc930c5397fc99b6a647e9882baa71a3b..5d6dc2251b49e888f6696a420e3df256c3510382 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -20,7 +20,6 @@
#include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h"
#include "chrome/browser/ui/autofill/autofill_popup_controller_impl.h"
#include "chrome/browser/ui/autofill/country_combobox_model.h"
-#include "components/autofill/content/browser/autocheckout_steps.h"
#include "components/autofill/content/browser/wallet/wallet_client.h"
#include "components/autofill/content/browser/wallet/wallet_client_delegate.h"
#include "components/autofill/content/browser/wallet/wallet_items.h"
@@ -95,12 +94,6 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
virtual void Show() OVERRIDE;
virtual void Hide() OVERRIDE;
virtual void TabActivated() OVERRIDE;
- virtual void AddAutocheckoutStep(AutocheckoutStepType step_type) OVERRIDE;
- virtual void UpdateAutocheckoutStep(
- AutocheckoutStepType step_type,
- AutocheckoutStepStatus step_status) OVERRIDE;
- virtual void OnAutocheckoutError() OVERRIDE;
- virtual void OnAutocheckoutSuccess() OVERRIDE;
// Returns |view_| as a testable version of itself (if |view_| exists and
// actually implements |AutofillDialogView::GetTestableView()|).
@@ -121,8 +114,6 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
virtual bool ShouldOfferToSaveInChrome() const OVERRIDE;
virtual ui::MenuModel* MenuModelForAccountChooser() OVERRIDE;
virtual gfx::Image AccountChooserImage() OVERRIDE;
- virtual bool ShouldShowDetailArea() const OVERRIDE;
- virtual bool ShouldShowProgressBar() const OVERRIDE;
virtual gfx::Image ButtonStripImage() const OVERRIDE;
virtual int GetDialogButtons() const OVERRIDE;
virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
@@ -159,8 +150,6 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
virtual gfx::Image SplashPageImage() const OVERRIDE;
virtual void ViewClosed() OVERRIDE;
virtual std::vector<DialogNotification> CurrentNotifications() OVERRIDE;
- virtual std::vector<DialogAutocheckoutStep> CurrentAutocheckoutSteps()
- const OVERRIDE;
virtual void SignInLinkClicked() OVERRIDE;
virtual void NotificationCheckboxStateChanged(DialogNotification::Type type,
bool checked) OVERRIDE;
@@ -284,8 +273,6 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
// to the requesting site.
virtual bool TransmissionWillBeSecure() const;
- AutocheckoutState autocheckout_state() const { return autocheckout_state_; }
-
// Shows a new credit card saved bubble and passes ownership of |new_card| and
// |billing_profile| to the bubble. Exposed for testing.
virtual void ShowNewCreditCardBubble(
@@ -533,12 +520,6 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
// interact with it.
void LogDialogLatencyToShow();
- // Sets the state of the autocheckout flow.
- void SetAutocheckoutState(AutocheckoutState autocheckout_state);
-
- // Obscures the web contents.
- void DeemphasizeRenderView();
-
// Returns the metric corresponding to the user's initial state when
// interacting with this dialog.
AutofillMetrics::DialogInitialUserStateMetric GetInitialUserState() const;
@@ -555,10 +536,6 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
base::Time dialog_shown_timestamp_;
AutofillMetrics::DialogInitialUserStateMetric initial_user_state_;
- // The time that Autocheckout started running. Reset on error. While this is
- // a valid time, |AutocheckoutIsRunning()| will return true.
- base::Time autocheckout_started_timestamp_;
-
// Whether this is an Autocheckout or a requestAutocomplete dialog.
const DialogType dialog_type_;
@@ -690,19 +667,9 @@ class AutofillDialogControllerImpl : public AutofillDialogViewDelegate,
// Wallet validation errors. section->type->(error_msg, input_value).
WalletValidationErrors wallet_errors_;
- // The current state of the Autocheckout flow.
- AutocheckoutState autocheckout_state_;
-
// Whether the latency to display to the UI was logged to UMA yet.
bool was_ui_latency_logged_;
- // Whether or not the render view has been deemphasized.
- bool deemphasized_render_view_;
-
- // State of steps in the current Autocheckout flow, or empty if not an
- // Autocheckout use case.
- std::vector<DialogAutocheckoutStep> steps_;
-
// The Google Wallet cookie value, set as an authorization header on requests
// to Wallet.
std::string wallet_cookie_value_;

Powered by Google App Engine
This is Rietveld 408576698