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

Side by Side Diff: chrome/browser/ui/android/snackbars/auto_signin_prompt_controller.h

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 11
12 namespace content { 12 namespace content {
13 class WebContents; 13 class WebContents;
14 } 14 }
15 15
16 // Shows an auto sign-in prompt in order to inform the users that they were 16 // Shows an auto sign-in prompt in order to inform the users that they were
17 // automatically signed in to the website. |username| is the username used by 17 // automatically signed in to the website. |username| is the username used by
18 // the user in order to login to the web site, it can be email, telephone number 18 // the user in order to login to the web site, it can be email, telephone number
19 // or any string. 19 // or any string.
20 void ShowAutoSigninPrompt(content::WebContents* web_contents, 20 void ShowAutoSigninPrompt(content::WebContents* web_contents,
21 const base::string16& username); 21 const base::string16& username);
22 22
23 // Register native method.
24 bool RegisterAutoSigninSnackbarController(JNIEnv* env);
25
26 #endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_ 23 #endif // CHROME_BROWSER_UI_ANDROID_SNACKBARS_AUTO_SIGNIN_PROMPT_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698