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

Issue 1681813003: arc: Use incognito profile for OptIn and cookie fetcher (Closed)

Created:
4 years, 10 months ago by khmel
Modified:
4 years, 8 months ago
CC:
chromium-reviews, davemoore+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

arc: Use platform app for OptIn dialog. BUG=585324 TEST=Manually tested with different combination of signed profiles and ARC optin state. OptIn dialog does not show multiply profile and auth code can be fetched. Once fetched authority code remains in cookies and can be used on next signin. Committed: https://crrev.com/14d72dba39bed3c2d5fb6a90e798855013d37534 Cr-Commit-Position: refs/heads/master@{#375775}

Patch Set 1 #

Total comments: 1

Patch Set 2 : switch to platform app #

Patch Set 3 : cleanup #

Total comments: 36

Patch Set 4 : comments addressed #

Patch Set 5 : minor cleanup #

Total comments: 24

Patch Set 6 : nits and use webRequest.onCompleted #

Total comments: 1

Patch Set 7 : remove non-required request option #

Total comments: 2

Patch Set 8 : rebased, added reseting windowClosedInternally before window creation #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+482 lines, -250 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_service.h View 1 2 3 7 chunks +38 lines, -14 lines 1 comment Download
M chrome/browser/chromeos/arc/arc_auth_service.cc View 1 2 3 4 5 10 chunks +111 lines, -32 lines 2 comments Download
M chrome/browser/chromeos/arc/arc_auth_service_unittest.cc View 1 2 3 5 chunks +50 lines, -18 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_ui.h View 1 1 chunk +0 lines, -76 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_auth_ui.cc View 1 1 chunk +0 lines, -108 lines 0 comments Download
A chrome/browser/extensions/api/messaging/arc_support_host.h View 1 2 3 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/messaging/arc_support_host.cc View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/component_extensions_whitelist/whitelist.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/arc_support/background.js View 1 2 3 4 5 6 7 1 chunk +109 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/arc_support/main.html View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/arc_support/manifest.json View 1 2 3 4 5 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/resources/component_extension_resources.grd View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (9 generated)
khmel
Hi Xiyuan, Could you please take a look to this CL where I try to ...
4 years, 10 months ago (2016-02-09 03:56:22 UTC) #2
xiyuan
Good point to reuse the cookies so that we can auto fetch auth code in ...
4 years, 10 months ago (2016-02-09 22:39:35 UTC) #3
khmel
On 2016/02/09 22:39:35, xiyuan wrote: > Good point to reuse the cookies so that we ...
4 years, 10 months ago (2016-02-09 22:41:32 UTC) #4
khmel
Hi, This is implementation based on platform app as we discussed. 1. Implement OptIn Platform ...
4 years, 10 months ago (2016-02-11 02:46:16 UTC) #6
xiyuan
This looks awesome. https://codereview.chromium.org/1681813003/diff/40001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1681813003/diff/40001/chrome/browser/browser_resources.grd#newcode392 chrome/browser/browser_resources.grd:392: <include name="IDR_ARC_OPT_IN_MANIFEST" file="resources\chromeos\arc_opt_in\manifest.json" type="BINDATA" /> nit: ...
4 years, 10 months ago (2016-02-11 17:57:21 UTC) #7
khmel
Thank you for review, as usual it is very useful! Some points: 1. arc_opt_in renamed ...
4 years, 10 months ago (2016-02-12 02:45:24 UTC) #8
xiyuan
https://codereview.chromium.org/1681813003/diff/40001/chrome/browser/resources/chromeos/arc_opt_in/main.html File chrome/browser/resources/chromeos/arc_opt_in/main.html (right): https://codereview.chromium.org/1681813003/diff/40001/chrome/browser/resources/chromeos/arc_opt_in/main.html#newcode10 chrome/browser/resources/chromeos/arc_opt_in/main.html:10: src="https://accounts.google.com/o/oauth2/programmatic_auth?scope=https://www.google.com/accounts/OAuthLogin&client_id=1070009224336-sdh77n7uot3oc99ais00jmuft6sk2fg9.apps.googleusercontent.com"> On 2016/02/12 02:45:24, khmel wrote: > On 2016/02/11 ...
4 years, 10 months ago (2016-02-12 17:06:59 UTC) #9
khmel
Comments addressed + use webRequest.onCompleted instead loadstop event. PTAL https://codereview.chromium.org/1681813003/diff/40001/chrome/browser/resources/chromeos/arc_opt_in/main.html File chrome/browser/resources/chromeos/arc_opt_in/main.html (right): https://codereview.chromium.org/1681813003/diff/40001/chrome/browser/resources/chromeos/arc_opt_in/main.html#newcode10 chrome/browser/resources/chromeos/arc_opt_in/main.html:10: ...
4 years, 10 months ago (2016-02-12 18:15:15 UTC) #10
xiyuan
LGTM! Thank you for being patient with me and making all the changes. You still ...
4 years, 10 months ago (2016-02-12 18:25:43 UTC) #11
khmel
Hi Ken, I need your attention for browser/extensions part. PTAL
4 years, 10 months ago (2016-02-12 19:30:36 UTC) #13
Ken Rockot(use gerrit already)
lgtm
4 years, 10 months ago (2016-02-12 19:35:14 UTC) #14
xiyuan
https://codereview.chromium.org/1681813003/diff/120001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/1681813003/diff/120001/chrome/browser/resources/chromeos/arc_support/background.js#newcode99 chrome/browser/resources/chromeos/arc_support/background.js:99: We should reset |windowClosedInternally| here just in case.
4 years, 10 months ago (2016-02-13 13:57:30 UTC) #15
jabdelmalek
lgtm
4 years, 10 months ago (2016-02-17 01:47:36 UTC) #16
khmel
Hi John, You put l-g-t-m but presubmit shows that I still need approval for chrome/browser/extensions/component_extensions_whitelist/whitelist.cc. ...
4 years, 10 months ago (2016-02-17 02:02:30 UTC) #18
jam
lgtm
4 years, 10 months ago (2016-02-17 03:14:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681813003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681813003/140001
4 years, 10 months ago (2016-02-17 03:20:10 UTC) #22
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-17 04:08:42 UTC) #24
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/14d72dba39bed3c2d5fb6a90e798855013d37534 Cr-Commit-Position: refs/heads/master@{#375775}
4 years, 10 months ago (2016-02-17 04:10:10 UTC) #26
Luis Héctor Chávez
https://codereview.chromium.org/1681813003/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc File chrome/browser/chromeos/arc/arc_auth_service.cc (right): https://codereview.chromium.org/1681813003/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.cc#newcode34 chrome/browser/chromeos/arc/arc_auth_service.cc:34: ArcAuthService* arc_auth_service = nullptr; |g_arc_auth_service| https://codereview.chromium.org/1681813003/diff/140001/chrome/browser/chromeos/arc/arc_auth_service.h File chrome/browser/chromeos/arc/arc_auth_service.h (right): ...
4 years, 8 months ago (2016-04-06 20:23:06 UTC) #28
xiyuan
4 years, 8 months ago (2016-04-06 20:36:23 UTC) #29
Message was sent while issue was closed.
https://codereview.chromium.org/1681813003/diff/140001/chrome/browser/chromeo...
File chrome/browser/chromeos/arc/arc_auth_service.cc (right):

https://codereview.chromium.org/1681813003/diff/140001/chrome/browser/chromeo...
chrome/browser/chromeos/arc/arc_auth_service.cc:34: ArcAuthService*
arc_auth_service = nullptr;
On 2016/04/06 20:23:06, Luis Héctor Chávez wrote:
> |g_arc_auth_service|

g_ prefix is only needed when the var is globally accessible. Here it is in an
anonymous namespace. So no need to have the prefix.

Powered by Google App Engine
This is Rietveld 408576698