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

Issue 1860143003: 🌅 Refactor SigninHelper. (Closed)

Created:
4 years, 8 months ago by Peter Wen
Modified:
4 years, 8 months ago
Reviewers:
maxbogue, nyquist
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor SigninHelper. Rather than expose static methods and passing in the context of the caller, since SigninHelper is designed to be used application-wide, save the application context as a member variable instead. Save the default shared preferences as a member variable, reducing potential burden in the future. BUG=600806, 599284 Committed: https://crrev.com/53511f941065102f8c8c5a476c5e4cc3770726ee Cr-Commit-Position: refs/heads/master@{#387905}

Patch Set 1 #

Patch Set 2 : Fix tests. #

Total comments: 2

Patch Set 3 : Fix SyncTest. #

Messages

Total messages: 23 (8 generated)
Peter Wen
Hi Max, This is a refactoring in order to fix http://crbug.com/599284, let me know whether ...
4 years, 8 months ago (2016-04-05 21:19:21 UTC) #3
maxbogue
On 2016/04/05 21:19:21, Peter Wen wrote: > Hi Max, > > This is a refactoring ...
4 years, 8 months ago (2016-04-06 01:44:25 UTC) #4
maxbogue
https://codereview.chromium.org/1860143003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/services/GoogleServicesManager.java File chrome/android/java/src/org/chromium/chrome/browser/services/GoogleServicesManager.java (right): https://codereview.chromium.org/1860143003/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/services/GoogleServicesManager.java#newcode43 chrome/android/java/src/org/chromium/chrome/browser/services/GoogleServicesManager.java:43: protected final Context mAppContext; I don't really think mAppContext ...
4 years, 8 months ago (2016-04-06 01:44:39 UTC) #5
Peter Wen
Thanks for the quick review! I'll leave the merging of these helpers to you folks ...
4 years, 8 months ago (2016-04-06 12:42:22 UTC) #6
Peter Wen
Friendly ping. 🍕
4 years, 8 months ago (2016-04-07 19:06:02 UTC) #7
maxbogue
lgtm
4 years, 8 months ago (2016-04-07 19:15:32 UTC) #8
Peter Wen
Thanks Max! +nyquist@ for chrome/android OWNERS.
4 years, 8 months ago (2016-04-07 19:24:31 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1860143003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1860143003/40001
4 years, 8 months ago (2016-04-07 19:25:49 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-07 21:00:29 UTC) #14
Peter Wen
Friendly ping. 🌅
4 years, 8 months ago (2016-04-12 18:03:23 UTC) #15
nyquist
lgtm
4 years, 8 months ago (2016-04-16 00:32:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1860143003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1860143003/40001
4 years, 8 months ago (2016-04-18 14:15:57 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-18 14:53:19 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/53511f941065102f8c8c5a476c5e4cc3770726ee Cr-Commit-Position: refs/heads/master@{#387905}
4 years, 8 months ago (2016-04-18 14:54:40 UTC) #22
Peter Wen
4 years, 7 months ago (2016-04-27 15:06:21 UTC) #23
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/1926703003/ by wnwen@chromium.org.

The reason for reverting is: Some static methods in SigninHelper are used when
Chrome is not started, so native is not loaded. See crbug.com/605832 for
context..

Powered by Google App Engine
This is Rietveld 408576698