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

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

Issue 1379153003: [Smart Lock, UI] First run expience for Auto sign-in prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: AutoSigninFirstRunInfoBar.java Created 5 years, 1 month 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_prompt_controller.h
diff --git a/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller.h b/chrome/browser/ui/android/snackbars/auto_signin_prompt_controller.h
similarity index 50%
rename from chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller.h
rename to chrome/browser/ui/android/snackbars/auto_signin_prompt_controller.h
index 1e97ac1ca7e1104d60d7416948baf3558d40b52f..f59a74342a35973f97b99442ff0d6d16ccda7a5f 100644
--- a/chrome/browser/ui/android/snackbars/auto_signin_snackbar_controller.h
+++ b/chrome/browser/ui/android/snackbars/auto_signin_prompt_controller.h
@@ -2,22 +2,25 @@
// 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_H_
-#define CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_H_
+#ifndef CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_
+#define CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_
#include <jni.h>
#include "base/strings/string16.h"
-class TabAndroid;
+namespace content {
+class WebContents;
+}
-// Shows an auto sign-in snackbar in order to inform the users that they were
+// Shows an auto sign-in prompt in order to inform the users that they were
// automatically signed in to the website. |username| is the username used by
// the user in order to login to the web site, it can be email, telephone number
// or any string.
-void ShowAutoSigninSnackbar(TabAndroid *tab, const base::string16& username);
+void ShowAutoSigninPrompt(content::WebContents* web_contents,
+ const base::string16& username);
// Register native method.
bool RegisterAutoSigninSnackbarController(JNIEnv* env);
-#endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_SNACKBAR_CONTROLLER_H_
+#endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698