Index: remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcher.java |
diff --git a/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcher.java b/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcher.java |
index 5efccca7bd373650294dff39e03c56192631ee3a..c422a27c225f00489619760514ff33af0280ee65 100644 |
--- a/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcher.java |
+++ b/remoting/android/java/src/org/chromium/chromoting/accountswitcher/AccountSwitcher.java |
@@ -4,6 +4,7 @@ |
package org.chromium.chromoting.accountswitcher; |
+import android.content.Intent; |
import android.view.View; |
/** Common interface for account-switcher implementations. */ |
@@ -72,4 +73,16 @@ public interface AccountSwitcher { |
* that a valid account is selected, or that the list is empty. |
*/ |
void reloadAccounts(); |
+ |
+ /** |
+ * This should be called from the controlling activity's onActivityResult() method. It allows |
+ * the account-switcher implementation to launch a child Activity and handle the result. |
+ */ |
+ void onActivityResult(int requestCode, int resultCode, Intent data); |
+ |
+ /** |
+ * Releases any resources used by the account-switcher. Should be called by the activity's |
+ * onDestroy() method. |
+ */ |
+ void destroy(); |
} |