OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_ |
6 #define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_ | 6 #define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "components/signin/core/browser/signin_metrics.h" | 9 #include "components/signin/core/browser/signin_metrics.h" |
10 #include "content/public/browser/android/content_view_core.h" | 10 #include "content/public/browser/android/content_view_core.h" |
11 | 11 |
12 namespace chrome { | 12 namespace chrome { |
13 namespace android { | 13 namespace android { |
14 | 14 |
15 class SigninPromoUtilAndroid { | 15 class SigninPromoUtilAndroid { |
16 public: | 16 public: |
17 // Opens a signin flow with the specified |access_point| for metrics within | 17 // Opens a signin flow with the specified |access_point| for metrics within |
18 // the context of |content_view_core|, which could be null. | 18 // the context of |content_view_core|, which could be null. |
19 static void StartAccountSigninActivityForPromo( | 19 static void StartAccountSigninActivityForPromo( |
20 content::ContentViewCore* content_view_core, | 20 content::ContentViewCore* content_view_core, |
21 signin_metrics::AccessPoint access_point); | 21 signin_metrics::AccessPoint access_point); |
22 | |
23 static bool Register(JNIEnv* env); | |
24 }; | 22 }; |
25 | 23 |
26 } // namespace android | 24 } // namespace android |
27 } // namespace chrome | 25 } // namespace chrome |
28 | 26 |
29 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_ | 27 #endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_ |
OLD | NEW |