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

Unified Diff: chrome/browser/ui/views/payments/profile_list_view_controller.h

Issue 2768133002: [Web Payments] Refactor sheet display to allow updating view content (Closed)
Patch Set: Created 3 years, 9 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/views/payments/profile_list_view_controller.h
diff --git a/chrome/browser/ui/views/payments/profile_list_view_controller.h b/chrome/browser/ui/views/payments/profile_list_view_controller.h
index 64f2a55d2e9b386578ff67a83e4937c523363c0b..5f3197b404351ad9cb1049487f78fb79a1c0c7f2 100644
--- a/chrome/browser/ui/views/payments/profile_list_view_controller.h
+++ b/chrome/browser/ui/views/payments/profile_list_view_controller.h
@@ -47,9 +47,6 @@ class ProfileListViewController : public PaymentRequestSheetController {
PaymentRequestState* state,
PaymentRequestDialogView* dialog);
- // PaymentRequestSheetController:
- std::unique_ptr<views::View> CreateView() override;
-
// Returns a representation of the given profile appropriate for display
// in this context.
virtual std::unique_ptr<views::View> GetLabel(
@@ -69,8 +66,10 @@ class ProfileListViewController : public PaymentRequestSheetController {
// in this context.
virtual std::vector<autofill::AutofillProfile*> GetProfiles() = 0;
- // Returns the string displayed at the top of the view.
- virtual base::string16 GetHeaderString() = 0;
+ void PopulateList();
+
+ // PaymentRequestSheetController:
+ void FillContentView(views::View* content_view) override;
private:
std::unique_ptr<views::Button> CreateRow(autofill::AutofillProfile* profile);

Powered by Google App Engine
This is Rietveld 408576698