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

Unified Diff: chrome/browser/ui/views/passwords/credentials_selection_view.h

Issue 2808823002: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used (Closed)
Patch Set: MacViews: Allows the toolkit-views Manage Passwords Dialog to be used Created 3 years, 8 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/passwords/credentials_selection_view.h
diff --git a/chrome/browser/ui/views/passwords/credentials_selection_view.h b/chrome/browser/ui/views/passwords/credentials_selection_view.h
deleted file mode 100644
index b71e2985b5195a28d21539d969d38c3f2da6d7fc..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/passwords/credentials_selection_view.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/macros.h"
-#include "components/autofill/core/common/password_form.h"
-#include "ui/views/view.h"
-
-namespace views {
-class Combobox;
-}
-
-namespace ui {
-class SimpleComboboxModel;
-}
-
-class ManagePasswordsBubbleModel;
-
-// A view where the user can select a credential.
-class CredentialsSelectionView : public views::View {
- public:
- explicit CredentialsSelectionView(
- ManagePasswordsBubbleModel* manage_passwords_bubble_model);
- ~CredentialsSelectionView() override;
-
- // This methods also reports a user action.
- const autofill::PasswordForm* GetSelectedCredentials();
-
- private:
- void GenerateUsernameCombobox(const base::string16& best_matched_username);
- void ReportUserActionOnce(bool was_update_rejected, int selected_index);
-
- const std::vector<autofill::PasswordForm>* password_forms_;
- std::unique_ptr<views::Combobox> combobox_;
- std::unique_ptr<ui::SimpleComboboxModel> combobox_model_;
- int default_index_;
- bool is_default_best_match_;
- bool is_default_preferred_;
- bool action_reported_;
-
- DISALLOW_COPY_AND_ASSIGN(CredentialsSelectionView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_CREDENTIALS_SELECTION_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698