Chromium Code Reviews| Index: chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h |
| diff --git a/chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h b/chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..be0e9ef9abde547f54b46eb94349618ee52cc9b0 |
| --- /dev/null |
| +++ b/chrome/browser/password_manager/auto_signin_first_run_infobar_delegate.h |
| @@ -0,0 +1,44 @@ |
| +// 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_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGATE_H_ |
| +#define CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGATE_H_ |
| + |
| +#include "base/basictypes.h" |
|
vabr (Chromium)
2015/11/03 15:28:57
Did you mean to #include just "base/macros.h"? The
melandory
2015/11/03 16:32:35
Done.
|
| +#include "chrome/browser/password_manager/password_manager_infobar_delegate.h" |
| +#include "components/password_manager/core/browser/password_manager_metrics_util.h" |
|
vabr (Chromium)
2015/11/03 15:28:57
This does not look used.
melandory
2015/11/03 16:32:35
Done.
|
| + |
| +namespace content { |
| +class WebContents; |
| +} |
| + |
| +class AutoSigninFirstRunInfobarDelegate |
| + : public PasswordManagerInfoBarDelegate { |
| + public: |
| + static void Create(content::WebContents* web_contents, |
| + const base::string16& message); |
| + |
| + ~AutoSigninFirstRunInfobarDelegate() override; |
| + |
| + base::string16 GetButtonLabel(InfoBarButton button) const override; |
| + bool Accept() override; |
| + bool Cancel() override; |
| + |
| + base::string16 GetExplanation() { return explanation_; } |
| + |
| + protected: |
| + // Makes a ctor available in tests. |
| + AutoSigninFirstRunInfobarDelegate(content::WebContents* web_contents, |
| + bool is_smart_lock_branding_available, |
| + const base::string16& message); |
| + |
| + private: |
| + base::string16 explanation_; |
| + |
| + content::WebContents* web_contents_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunInfobarDelegate); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_PASSWORD_MANAGER_AUTO_SIGNIN_FIRST_RUN_INFOBAR_DELEGATE_H_ |