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

Unified Diff: services/authentication/src/org/chromium/mojo/authentication/AuthenticationServiceImpl.java

Issue 1466733002: Google OAuth Device Flow support for FNL (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebased to master Created 4 years, 10 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: services/authentication/src/org/chromium/mojo/authentication/AuthenticationServiceImpl.java
diff --git a/services/authentication/src/org/chromium/mojo/authentication/AuthenticationServiceImpl.java b/services/authentication/src/org/chromium/mojo/authentication/AuthenticationServiceImpl.java
index e773498c7fdb0e3d764df2f6ae8c84c1cc4e0868..66652353cc5581327f3a4be22e2f03b36bd33190 100644
--- a/services/authentication/src/org/chromium/mojo/authentication/AuthenticationServiceImpl.java
+++ b/services/authentication/src/org/chromium/mojo/authentication/AuthenticationServiceImpl.java
@@ -244,6 +244,25 @@ public class AuthenticationServiceImpl
}
}
+ /**
+ * @see AuthenticationService#getOAuth2DeviceCode()
+ */
+ @Override
+ public void getOAuth2DeviceCode(
+ final String[] scopes, final GetOAuth2DeviceCodeResponse callback) {
+ callback.call(null, null, null, "Unsupported operation.");
+ return;
qsr 2016/03/04 15:06:46 Could you remove the return. Having this as the la
ukode 2016/03/11 22:48:52 Done.
+ }
+
+ /**
+ * @see AuthenticationService#addAccount()
+ */
+ @Override
+ public void addAccount(final String deviceCode, final AddAccountResponse callback) {
+ callback.call(null, "Unsupported operation.");
+ return;
+ }
+
private static boolean isGooglePlayServicesAvailable(Context context) {
switch (GooglePlayServicesUtil.isGooglePlayServicesAvailable(context)) {
case ConnectionResult.SERVICE_MISSING:
« services/authentication/google_authentication_impl.cc ('K') | « services/authentication/main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698