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

Unified Diff: chrome/browser/android/signin/signin_promo_util_android.h

Issue 2138643004: [Autofill] Add support for signin promo on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@aaa
Patch Set: nits Created 4 years, 5 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/android/signin/signin_promo_util_android.h
diff --git a/chrome/browser/android/signin/signin_promo_util_android.h b/chrome/browser/android/signin/signin_promo_util_android.h
new file mode 100644
index 0000000000000000000000000000000000000000..246db6fa5b312d1bb7feafc211e74ea2a4b37ebc
--- /dev/null
+++ b/chrome/browser/android/signin/signin_promo_util_android.h
@@ -0,0 +1,29 @@
+// Copyright 2016 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_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_
+#define CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_
+
+#include "base/android/jni_android.h"
+#include "components/signin/core/browser/signin_metrics.h"
+#include "content/public/browser/android/content_view_core.h"
+
+namespace chrome {
+namespace android {
+
+class SigninPromoUtilAndroid {
+ public:
+ // Opens a signin flow with the specified |access_point| for metrics within
+ // the context of |content_view_core|, which could be null.
+ static void StartAccountSigninActivityForPromo(
+ content::ContentViewCore* content_view_core,
+ signin_metrics::AccessPoint access_point);
+
+ static bool Register(JNIEnv* env);
+};
+
+} // namespace android
+} // namespace chrome
+
+#endif // CHROME_BROWSER_ANDROID_SIGNIN_SIGNIN_PROMO_UTIL_ANDROID_H_
« no previous file with comments | « chrome/browser/android/chrome_jni_registrar.cc ('k') | chrome/browser/android/signin/signin_promo_util_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698