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

Issue 2854273002: [CRD iOS] Implementing save to keychain and user defaults for login info. Refactor remoting service. (Closed)

Created:
3 years, 7 months ago by nicholss
Modified:
3 years, 7 months ago
Reviewers:
Yuwei, yuweih
CC:
chromium-reviews, ios-reviews_chromium.org, chromoting-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

In this CL I add a keychain wrapper and save the refresh token for a current user. This will load the stored data on app launch, which will let us work more quickly in Chromium without needing to login each app launch. This also refactors the remoting service to move all authentication related code into a class that manages authentication. Moving to a better pattern of using @properties vs methods. Adding eventing on hosts update and user update from the service. Review-Url: https://codereview.chromium.org/2854273002 Cr-Commit-Position: refs/heads/master@{#470363} Committed: https://chromium.googlesource.com/chromium/src/+/c372b3356c8ff8049754aa5bb2be014d32353ed8

Patch Set 1 #

Patch Set 2 : Integrated changes for remoting service into project. #

Patch Set 3 : Merge with master. #

Patch Set 4 : Cleanup on self review. #

Patch Set 5 : Cleanup on self review. #

Patch Set 6 : Cleanup on self review. #

Total comments: 34

Patch Set 7 : Updating based on feedback. #

Total comments: 2

Patch Set 8 : NSAssert usage broke the builders. #

Patch Set 9 : Removing authenticate with refresh token from pub api. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+684 lines, -258 lines) Patch
M remoting/client/ios/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/client/ios/app/app_delegate.mm View 1 2 chunks +2 lines, -1 line 0 comments Download
M remoting/client/ios/app/remoting_settings_view_controller.mm View 1 2 3 4 5 6 4 chunks +17 lines, -4 lines 0 comments Download
M remoting/client/ios/app/remoting_view_controller.h View 1 chunk +1 line, -3 lines 0 comments Download
M remoting/client/ios/app/remoting_view_controller.mm View 1 2 3 4 5 6 10 chunks +39 lines, -13 lines 0 comments Download
M remoting/client/ios/domain/host_info.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/client/ios/domain/user_info.h View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/client/ios/domain/user_info.mm View 1 2 chunks +15 lines, -0 lines 0 comments Download
M remoting/client/ios/facade/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/client/ios/facade/host_list_fetcher.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A remoting/client/ios/facade/remoting_authentication.h View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
A remoting/client/ios/facade/remoting_authentication.mm View 1 2 3 4 5 6 7 8 1 chunk +195 lines, -0 lines 0 comments Download
M remoting/client/ios/facade/remoting_service.h View 1 2 3 4 5 6 2 chunks +19 lines, -46 lines 0 comments Download
M remoting/client/ios/facade/remoting_service.mm View 1 2 3 4 5 6 3 chunks +99 lines, -191 lines 0 comments Download
A remoting/client/ios/keychain_wrapper.h View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A remoting/client/ios/keychain_wrapper.mm View 1 2 3 4 5 6 7 1 chunk +206 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 28 (17 generated)
nicholss
PTAL thanks!
3 years, 7 months ago (2017-05-03 21:03:59 UTC) #4
Yuwei
It could be much easier to review if you had broken it down into multiple ...
3 years, 7 months ago (2017-05-04 05:10:15 UTC) #5
nicholss
PTAL https://codereview.chromium.org/2854273002/diff/100001/remoting/client/ios/domain/user_info.mm File remoting/client/ios/domain/user_info.mm (right): https://codereview.chromium.org/2854273002/diff/100001/remoting/client/ios/domain/user_info.mm#newcode36 remoting/client/ios/domain/user_info.mm:36: if (_userEmail && _userEmail.length > 0 && _refreshToken ...
3 years, 7 months ago (2017-05-08 17:08:10 UTC) #6
Yuwei
Just two more questions before signing off :) https://codereview.chromium.org/2854273002/diff/100001/remoting/client/ios/facade/remoting_authentication.mm File remoting/client/ios/facade/remoting_authentication.mm (right): https://codereview.chromium.org/2854273002/diff/100001/remoting/client/ios/facade/remoting_authentication.mm#newcode140 remoting/client/ios/facade/remoting_authentication.mm:140: _tokenGetter ...
3 years, 7 months ago (2017-05-08 19:00:58 UTC) #13
nicholss
https://codereview.chromium.org/2854273002/diff/100001/remoting/client/ios/facade/remoting_authentication.mm File remoting/client/ios/facade/remoting_authentication.mm (right): https://codereview.chromium.org/2854273002/diff/100001/remoting/client/ios/facade/remoting_authentication.mm#newcode140 remoting/client/ios/facade/remoting_authentication.mm:140: _tokenGetter = CreateOAuthTokenWithRefreshToken( On 2017/05/08 19:00:58, Yuwei wrote: > ...
3 years, 7 months ago (2017-05-08 21:16:04 UTC) #16
yuweih
LGTM. Thanks for fixing this :)
3 years, 7 months ago (2017-05-08 21:23:38 UTC) #18
Yuwei
LGTM Used the wrong account :P
3 years, 7 months ago (2017-05-08 22:01:52 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854273002/160001
3 years, 7 months ago (2017-05-08 22:04:33 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/264202) linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-05-08 22:51:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2854273002/160001
3 years, 7 months ago (2017-05-09 15:08:11 UTC) #25
commit-bot: I haz the power
3 years, 7 months ago (2017-05-09 17:17:48 UTC) #28
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/c372b3356c8ff8049754aa5bb2be...

Powered by Google App Engine
This is Rietveld 408576698