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

Unified Diff: remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcherFactory.java

Issue 1369903002: Android Chromoting: Add hooks for the official account-switcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add hooks for Google Play Services connection errors. Created 5 years, 3 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: remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcherFactory.java
diff --git a/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcherFactory.java b/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcherFactory.java
index ab7af7467cd523de798cc51e02093daa8a469bed..4e6f2760803fea314fe55784104059dbdd6ed4e7 100644
--- a/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcherFactory.java
+++ b/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcherFactory.java
@@ -4,7 +4,7 @@
package org.chromium.chromoting.accountswitcher;
-import android.content.Context;
+import android.app.Activity;
/**
* Factory class for creating AccountSwitcher implementations. This enables official builds of
@@ -28,12 +28,12 @@ public class AccountSwitcherFactory {
* Factory method to create an AccountSwitcher. This method returns the public implementation,
* but it can be overridden to provide an alternative account-switcher implementation. This is
* called during the Activity's onCreate() handler.
- * @param context Context used for UI operations.
+ * @param activity Activity used for UI operations.
* @param callback Callback for receiving notifications from the account-switcher.
*/
- public AccountSwitcher createAccountSwitcher(Context context,
+ public AccountSwitcher createAccountSwitcher(Activity activity,
AccountSwitcher.Callback callback) {
- return new AccountSwitcherBasic(context, callback);
+ return new AccountSwitcherBasic(activity, callback);
}
/**

Powered by Google App Engine
This is Rietveld 408576698