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

Issue 2408063007: Re-sort preference update protocol between Chrome and ArcSupport. (Closed)

Created:
4 years, 2 months ago by hidehiko
Modified:
4 years, 2 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, alemate+watch_chromium.org, yusukes+watch_chromium.org, hidehiko+watch_chromium.org, lhchavez+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, khmel
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Re-sort preference update protocol between Chrome and ArcSupport. Currently, the preference connected checkbox is individually implemented so that there are many "copy-and-paste then customize" code. This CL re-sorts the structure so that the protocol from the Chrome to the extension is a pair of (enabled, managed). Also, it reduces the dupped code. Along with the change, the UI update code in the ArcSupportHost is moved to the extension, too. This is the preparation to split the params in onAgree() callback into indivisual checkbox click. Once it's done, then the dependency between ArcSupportHost and ArcAuthService will be reverted. TEST=Ran on test device. Ran bots. BUG=633258 , b/31079732 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/04ad939f0adbbacd67d8631f38e488221b26cc4b Cr-Commit-Position: refs/heads/master@{#425883}

Patch Set 1 #

Patch Set 2 : Fix compiler error mistake. #

Total comments: 19

Patch Set 3 : Address comments. #

Patch Set 4 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -212 lines) Patch
M chrome/browser/chromeos/arc/arc_support_host.h View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/arc_support_host.cc View 1 5 chunks +40 lines, -46 lines 0 comments Download
M chrome/browser/resources/chromeos/arc_support/background.js View 1 2 3 11 chunks +186 lines, -151 lines 1 comment Download
M chrome/browser/resources/chromeos/arc_support/main.html View 1 chunk +21 lines, -15 lines 0 comments Download

Messages

Total messages: 32 (18 generated)
hidehiko
PTAL: Luis, Xiyuan. FYI: Yury (Note this is somehow related with your CL, but conceptually ...
4 years, 2 months ago (2016-10-13 10:18:11 UTC) #11
khmel
Hi Hidehiko, I don't really understand what do you want to achieve with this CL? ...
4 years, 2 months ago (2016-10-13 15:12:43 UTC) #13
hidehiko
On 2016/10/13 15:12:43, khmel wrote: > Hi Hidehiko, > > I don't really understand what ...
4 years, 2 months ago (2016-10-13 16:04:22 UTC) #14
hidehiko
https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js#newcode123 chrome/browser/resources/chromeos/arc_support/background.js:123: // state and the native state can be in ...
4 years, 2 months ago (2016-10-13 16:04:31 UTC) #15
xiyuan
LGTM with nits https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js#newcode123 chrome/browser/resources/chromeos/arc_support/background.js:123: // state and the native state ...
4 years, 2 months ago (2016-10-13 21:29:00 UTC) #16
khmel
lgtm
4 years, 2 months ago (2016-10-13 21:33:53 UTC) #17
Luis Héctor Chávez
https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js#newcode10 chrome/browser/resources/chromeos/arc_support/background.js:10: var UI_PAGES = ['none', not your fault, but can ...
4 years, 2 months ago (2016-10-17 02:26:01 UTC) #18
hidehiko
Thank you for review. PTAL. https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js#newcode10 chrome/browser/resources/chromeos/arc_support/background.js:10: var UI_PAGES = ['none', ...
4 years, 2 months ago (2016-10-17 09:27:57 UTC) #19
Luis Héctor Chávez
lgtm https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2408063007/diff/20001/chrome/browser/resources/chromeos/arc_support/background.js#newcode10 chrome/browser/resources/chromeos/arc_support/background.js:10: var UI_PAGES = ['none', On 2016/10/17 09:27:56, hidehiko ...
4 years, 2 months ago (2016-10-17 10:44:08 UTC) #20
hidehiko
Thank you for review, Luis! ... but ... https://codereview.chromium.org/2408063007/diff/60001/chrome/browser/resources/chromeos/arc_support/background.js File chrome/browser/resources/chromeos/arc_support/background.js (right): https://codereview.chromium.org/2408063007/diff/60001/chrome/browser/resources/chromeos/arc_support/background.js#newcode613 chrome/browser/resources/chromeos/arc_support/background.js:613: isMetricsEnabled: ...
4 years, 2 months ago (2016-10-17 13:12:45 UTC) #23
Luis Héctor Chávez
lgtm++
4 years, 2 months ago (2016-10-17 13:25:40 UTC) #24
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/2408063007/60001
4 years, 2 months ago (2016-10-18 03:17:11 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-18 03:22:21 UTC) #30
commit-bot: I haz the power
4 years, 2 months ago (2016-10-18 03:26:30 UTC) #32
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/04ad939f0adbbacd67d8631f38e488221b26cc4b
Cr-Commit-Position: refs/heads/master@{#425883}

Powered by Google App Engine
This is Rietveld 408576698