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

Side by Side Diff: remoting/android/java/src/org/chromium/chromoting/Chromoting.java

Issue 654293002: Fix Java indentation issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 package org.chromium.chromoting; 5 package org.chromium.chromoting;
6 6
7 import android.accounts.Account; 7 import android.accounts.Account;
8 import android.accounts.AccountManager; 8 import android.accounts.AccountManager;
9 import android.accounts.AccountManagerCallback; 9 import android.accounts.AccountManagerCallback;
10 import android.accounts.AccountManagerFuture; 10 import android.accounts.AccountManagerFuture;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 } 276 }
277 277
278 /** Called when the user touches hyperlinked text. */ 278 /** Called when the user touches hyperlinked text. */
279 @Override 279 @Override
280 public void onClick(View view) { 280 public void onClick(View view) {
281 HelpActivity.launch(this, HOST_SETUP_URL); 281 HelpActivity.launch(this, HOST_SETUP_URL);
282 } 282 }
283 283
284 /** Called when the user taps on a host entry. */ 284 /** Called when the user taps on a host entry. */
285 public void connectToHost(HostInfo host) { 285 public void connectToHost(HostInfo host) {
286 mProgressIndicator = ProgressDialog.show(this, 286 mProgressIndicator = ProgressDialog.show(this, host.name, getString(
287 host.name, getString(R.string.footer_connecting), true, true, 287 R.string.footer_connecting), true, true,
Lambros 2014/10/15 20:55:51 Optional nit: Google style guide says "prefer to b
aurimas (slooooooooow) 2014/10/15 21:18:47 Sadly Checkstyle does not seem to be aware of this
288 new DialogInterface.OnCancelListener() { 288 new DialogInterface.OnCancelListener() {
289 @Override 289 @Override
Lambros 2014/10/15 20:55:51 Should "@Override" be indented to match up with 'p
aurimas (slooooooooow) 2014/10/15 21:18:48 Yep, my bad on this one.
290 public void onCancel(DialogInterface dialog) { 290 public void onCancel(DialogInterface dialog) {
291 JniInterface.disconnectFromHost(); 291 JniInterface.disconnectFromHost();
292 mTokenFetcher = null; 292 mTokenFetcher = null;
293 } 293 }
294 }); 294 });
295 SessionConnector connector = new SessionConnector(this, this, mHostListL oader); 295 SessionConnector connector = new SessionConnector(this, this, mHostListL oader);
296 assert mTokenFetcher == null; 296 assert mTokenFetcher == null;
297 mTokenFetcher = createTokenFetcher(host); 297 mTokenFetcher = createTokenFetcher(host);
298 connector.connectToHost(mAccount.name, mToken, host); 298 connector.connectToHost(mAccount.name, mToken, host);
299 } 299 }
300 300
301 private void refreshHostList() { 301 private void refreshHostList() {
302 if (mWaitingForAuthToken) { 302 if (mWaitingForAuthToken) {
303 return; 303 return;
304 } 304 }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 } 491 }
492 }; 492 };
493 return new ThirdPartyTokenFetcher(this, host.getTokenUrlPatterns(), call back); 493 return new ThirdPartyTokenFetcher(this, host.getTokenUrlPatterns(), call back);
494 } 494 }
495 495
496 public void fetchThirdPartyToken(String tokenUrl, String clientId, String sc ope) { 496 public void fetchThirdPartyToken(String tokenUrl, String clientId, String sc ope) {
497 assert mTokenFetcher != null; 497 assert mTokenFetcher != null;
498 mTokenFetcher.fetchToken(tokenUrl, clientId, scope); 498 mTokenFetcher.fetchToken(tokenUrl, clientId, scope);
499 } 499 }
500 } 500 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698