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

Side by Side Diff: chrome/browser/ui/android/infobars/save_password_infobar.h

Issue 967193002: Credential saving clank infobar for Smart Lock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reusable_more_button
Patch Set: Created 5 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_
7
8 #include "chrome/browser/password_manager/save_password_infobar_delegate.h"
9 #include "chrome/browser/ui/android/infobars/confirm_infobar.h"
10
11 // The Android infobar that offers the user the ability to save a password
12 // for the site.
13 class SavePasswordInfoBar : public ConfirmInfoBar {
14 public:
15 explicit SavePasswordInfoBar(
16 scoped_ptr<SavePasswordInfoBarDelegate> delegate);
17
18 ~SavePasswordInfoBar() override;
19
20 // Internal use: must be public to be called from base_jni_registrar.cc
21 bool RegisterSavePasswordInfoBar(JNIEnv* env);
Bernhard Bauer 2015/03/03 16:54:20 I think this should be static? And it's still call
melandory 2015/03/05 17:15:13 It should be static. It doesn't crash and I think
gone 2015/03/05 18:23:41 The reason why it would crash it because it _wasn'
22
23 private:
24 // ConfirmInfoBar:
25 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
26 JNIEnv* env) override;
27
28 scoped_ptr<SavePasswordInfoBarDelegate> save_password_delegate_;
29
30 DISALLOW_COPY_AND_ASSIGN(SavePasswordInfoBar);
31 };
32
33
34 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_SAVE_PASSWORD_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698