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

Unified Diff: chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller_helper.h

Issue 1234063002: [Smart Lock] Auto sign-in snackbar UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/android/snackbars/auto_signin_snackbar_controller_helper.h
diff --git a/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller_helper.h b/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f28906b0778bb36bfb7db1c6102fcbe05342c84
--- /dev/null
+++ b/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller_helper.h
@@ -0,0 +1,21 @@
+// 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_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_HELPER_H_
+#define CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_HELPER_H_
+
+#include <jni.h>
+
+#include "base/strings/string16.h"
+
+class TabAndroid;
+
+// Shows an auto sign-in snackbar in order to inform the users that they were
+// automatically signed in to the website.
+void ShowAutoSigninSnackbar(TabAndroid *tab, const base::string16 &username);
Miguel Garcia 2015/08/21 10:44:52 nit, move the & near to base::string16 Also can y
melandory 2015/08/21 13:56:21 Done.
+
+// Register native method.
+bool RegisterAutoSigninSnackbarControllerHelper(JNIEnv* env);
+
+#endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698