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

Issue 196783002: Export a private webstore API to call into the new inline sign-in flow. (Closed)

Created:
6 years, 9 months ago by Ilya Sherman
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, jar (doing other things), asvitkine+watch_chromium.org, extensions-reviews_chromium.org, blundell, Roger Tawa OOO till Jul 10th
Visibility:
Public.

Description

Export a private webstore API to call into the new inline sign-in flow. BUG=347247 TEST= (1) Start out with a brand new Chrome profile, that you've never signed into. (2) Navigate to https://chrome.google.com/webstore/category/collection/for_your_desktop (3) Click on an app (any app). (4) Click on the "+ Free" link to install the app. At this point, you should be automatically navigated to a sign-in URL. That URL should be hosted on chrome://chrome-signin/, *not* on https://accounts.google.com/ServiceLogin R=guohui@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266812

Patch Set 1 #

Total comments: 13

Patch Set 2 : Mostly functional #

Total comments: 18

Patch Set 3 : Rebase #

Patch Set 4 : Fully functional! #

Patch Set 5 : Tidy up #

Total comments: 16

Patch Set 6 : Rebase #

Patch Set 7 : Redirect to the continue URL when Sync is disabled #

Total comments: 13

Patch Set 8 : Rebase #

Patch Set 9 : Add a TODO and fix continueUrl -> continue_url #

Patch Set 10 : It helps when code actually compiles... #

Patch Set 11 : Add API tests #

Total comments: 1

Patch Set 12 : Rebase #

Patch Set 13 : Simplify tests; require user gesture; succeed if user is already signed in #

Patch Set 14 : Remove a spurious diff #

Total comments: 8

Patch Set 15 : Improve keyed service dependency management, and better fake user actions #

Patch Set 16 : Rebase, update histograms.xml, and remove UI changes for now #

Patch Set 17 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -58 lines) Patch
M chrome/browser/extensions/api/webstore_private/webstore_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 13 14 3 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_api.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +104 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +208 lines, -7 lines 0 comments Download
M chrome/browser/signin/fake_signin_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/signin/fake_signin_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/webstore_private.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/webstore_private/common.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +26 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_private/sign_in_already_signed_in.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -7 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_private/sign_in_auth_in_progress_fails.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -7 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_private/sign_in_auth_in_progress_merge_session_fails.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -7 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_private/sign_in_auth_in_progress_succeeds.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -7 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/sign_in_continue_url_on_different_origin.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_private/sign_in_disabled_when_web_based_signin_is_enabled.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -7 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_private/sign_in_disallowed_in_incognito.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -7 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/sign_in_invalid_continue_url.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/webstore_private/sign_in_missing_continue_url.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -7 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/sign_in_redirect_to_sign_in.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/webstore_private/sign_in_user_gesture_required.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +13 lines, -0 lines 0 comments Download
M components/signin/core/browser/signin_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -2 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 60 (0 generated)
Ilya Sherman
https://codereview.chromium.org/196783002/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/196783002/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode692 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:692: bool WebstorePrivateSignInFunction::RunImpl() { Hui, this CL is not nearly ...
6 years, 9 months ago (2014-03-12 06:34:29 UTC) #1
guohui
Thanks Ilya! I think it looks good in general, please see my comments below. https://codereview.chromium.org/196783002/diff/1/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc ...
6 years, 9 months ago (2014-03-12 18:17:39 UTC) #2
guohui
Let me know when it is ready for a full review, looking forward to it ...
6 years, 9 months ago (2014-03-12 18:18:59 UTC) #3
Ilya Sherman
The code is now functional, except that I'm not handling the case where the user ...
6 years, 9 months ago (2014-03-14 05:42:56 UTC) #4
guohui
looks much better now =) See my answers below. https://codereview.chromium.org/196783002/diff/10001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/196783002/diff/10001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode708 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:708: ...
6 years, 9 months ago (2014-03-14 22:09:44 UTC) #5
Ilya Sherman
Thanks for the recommendations and the code pointers! I think the code in this CL ...
6 years, 9 months ago (2014-03-20 08:41:45 UTC) #6
blundell
Is it correct that SigninManager's *SigninProcess* APis can be deleted after this CL lands? Thanks!
6 years, 9 months ago (2014-03-21 15:31:07 UTC) #7
guohui
https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc File chrome/browser/ui/sync/one_click_signin_sync_observer.cc (right): https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc#newcode39 chrome/browser/ui/sync/one_click_signin_sync_observer.cc:39: // service? Never redirect? On 2014/03/20 08:41:45, Ilya Sherman ...
6 years, 9 months ago (2014-03-21 19:04:15 UTC) #8
Ilya Sherman
https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc File chrome/browser/ui/sync/one_click_signin_sync_observer.cc (right): https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc#newcode96 chrome/browser/ui/sync/one_click_signin_sync_observer.cc:96: // houses the "Configure sync" settings dialog. WDYT? On ...
6 years, 9 months ago (2014-03-21 19:30:18 UTC) #9
Ilya Sherman
On 2014/03/21 15:31:07, blundell wrote: > Is it correct that SigninManager's *SigninProcess* APis can be ...
6 years, 9 months ago (2014-03-21 19:32:45 UTC) #10
guohui
On 2014/03/21 19:32:45, Ilya Sherman wrote: > On 2014/03/21 15:31:07, blundell wrote: > > Is ...
6 years, 9 months ago (2014-03-21 19:47:53 UTC) #11
guohui
https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc File chrome/browser/ui/sync/one_click_signin_sync_observer.cc (right): https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc#newcode96 chrome/browser/ui/sync/one_click_signin_sync_observer.cc:96: // houses the "Configure sync" settings dialog. WDYT? On ...
6 years, 9 months ago (2014-03-21 20:00:20 UTC) #12
Ilya Sherman
https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc File chrome/browser/ui/sync/one_click_signin_sync_observer.cc (right): https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc#newcode96 chrome/browser/ui/sync/one_click_signin_sync_observer.cc:96: // houses the "Configure sync" settings dialog. WDYT? On ...
6 years, 9 months ago (2014-03-21 23:53:31 UTC) #13
Ilya Sherman
Uploading a new snapshot that includes the logging lines referenced in my previous comment. Also ...
6 years, 9 months ago (2014-03-22 00:06:28 UTC) #14
guohui
https://codereview.chromium.org/196783002/diff/110001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/196783002/diff/110001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode711 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:711: // or to set it as the last |error_|? ...
6 years, 9 months ago (2014-03-24 20:55:58 UTC) #15
guohui
https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc File chrome/browser/ui/sync/one_click_signin_sync_observer.cc (right): https://codereview.chromium.org/196783002/diff/70001/chrome/browser/ui/sync/one_click_signin_sync_observer.cc#newcode96 chrome/browser/ui/sync/one_click_signin_sync_observer.cc:96: // houses the "Configure sync" settings dialog. WDYT? i ...
6 years, 9 months ago (2014-03-24 21:31:51 UTC) #16
Ilya Sherman
Now with API tests! (//chrome/browser/ui/sync/ tests still to come...) Apologies that I've left some debug ...
6 years, 9 months ago (2014-03-26 08:21:38 UTC) #17
guohui
On 2014/03/26 08:21:38, Ilya Sherman wrote: > Now with API tests! (//chrome/browser/ui/sync/ tests still to ...
6 years, 9 months ago (2014-03-28 17:34:29 UTC) #18
guohui
6 years, 9 months ago (2014-03-28 17:34:58 UTC) #19
Ilya Sherman
Note: You are more than welcome to review this CL, but I am planning to ...
6 years, 9 months ago (2014-03-28 18:25:46 UTC) #20
gubalav
6 years, 8 months ago (2014-04-03 21:25:56 UTC) #21
gubalav
lgtm
6 years, 8 months ago (2014-04-09 14:49:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/196783002/220001
6 years, 8 months ago (2014-04-09 14:49:12 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 14:49:13 UTC) #24
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 8 months ago (2014-04-09 14:49:14 UTC) #25
gubalav
lgtm
6 years, 8 months ago (2014-04-13 02:38:36 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/196783002/220001
6 years, 8 months ago (2014-04-13 02:38:44 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-13 02:38:46 UTC) #28
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 8 months ago (2014-04-13 02:38:47 UTC) #29
Ilya Sherman
Ben and Charlie, please review the files with "extensions" in their name. I still intend ...
6 years, 8 months ago (2014-04-19 07:32:39 UTC) #30
Charlie Reis
On 2014/04/19 07:32:39, Ilya Sherman wrote: > Ben and Charlie, please review the files with ...
6 years, 8 months ago (2014-04-21 17:50:34 UTC) #31
not at google - send to devlin
lgtm the webstore internals are over my head, just one comment (repeated 3 times, sorry) ...
6 years, 8 months ago (2014-04-21 18:04:41 UTC) #32
Elliot Glaysher
https://codereview.chromium.org/196783002/diff/410001/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc File chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc (right): https://codereview.chromium.org/196783002/diff/410001/chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc#newcode130 chrome/browser/extensions/api/webstore_private/webstore_private_apitest.cc:130: NULL, &FakeSigninManagerBase::Build); So I came here from the other ...
6 years, 8 months ago (2014-04-21 18:19:44 UTC) #33
Ilya Sherman
https://codereview.chromium.org/196783002/diff/410001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/196783002/diff/410001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode753 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:753: return true; On 2014/04/21 18:04:42, kalman wrote: > true ...
6 years, 8 months ago (2014-04-22 05:02:31 UTC) #34
not at google - send to devlin
https://codereview.chromium.org/196783002/diff/410001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc File chrome/browser/extensions/api/webstore_private/webstore_private_api.cc (right): https://codereview.chromium.org/196783002/diff/410001/chrome/browser/extensions/api/webstore_private/webstore_private_api.cc#newcode753 chrome/browser/extensions/api/webstore_private/webstore_private_api.cc:753: return true; On 2014/04/22 05:02:32, Ilya Sherman wrote: > ...
6 years, 8 months ago (2014-04-22 16:22:20 UTC) #35
Roger Tawa OOO till Jul 10th
lgtm chrome/browser/signin, chrome/browser/ui/sync, component/signin
6 years, 8 months ago (2014-04-24 17:27:16 UTC) #36
guohui
lgtm
6 years, 8 months ago (2014-04-24 22:37:49 UTC) #37
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 8 months ago (2014-04-25 23:00:07 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/196783002/440001
6 years, 8 months ago (2014-04-25 23:03:35 UTC) #39
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 03:33:36 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-26 03:33:37 UTC) #41
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 8 months ago (2014-04-26 03:41:53 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/196783002/440001
6 years, 8 months ago (2014-04-26 03:43:44 UTC) #43
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 04:35:00 UTC) #44
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
6 years, 8 months ago (2014-04-26 04:35:01 UTC) #45
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-04-28 19:25:21 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/196783002/440001
6 years, 7 months ago (2014-04-28 19:26:14 UTC) #47
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 19:26:26 UTC) #48
commit-bot: I haz the power
Failed to apply patch for extensions/browser/extension_function_histogram_value.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-04-28 19:26:27 UTC) #49
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-04-28 21:26:29 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/196783002/460001
6 years, 7 months ago (2014-04-28 21:27:30 UTC) #51
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-28 22:12:27 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-28 22:12:28 UTC) #53
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-04-28 23:49:09 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/196783002/460001
6 years, 7 months ago (2014-04-28 23:49:55 UTC) #55
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-04-29 00:35:53 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on chromium_presubmit
6 years, 7 months ago (2014-04-29 00:35:54 UTC) #57
Ilya Sherman
The CQ bit was checked by isherman@chromium.org
6 years, 7 months ago (2014-04-29 00:39:39 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/isherman@chromium.org/196783002/460001
6 years, 7 months ago (2014-04-29 00:40:53 UTC) #59
commit-bot: I haz the power
6 years, 7 months ago (2014-04-29 09:47:06 UTC) #60
Message was sent while issue was closed.
Change committed as 266812

Powered by Google App Engine
This is Rietveld 408576698