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

Issue 2881473002: Make update over cellular an option for user (Closed)

Created:
3 years, 7 months ago by weidongg
Modified:
3 years, 7 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, hashimoto+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make update over cellular an option for user - What is changed in update engine of Chrome OS? A new state NEED_PERMISSION_TO_UPDATE will be broadcasted to Chrome UI When update aborts due to cellular connection. A new dbus interface SetUpdateOverCellularTarget() is added to set update target (version and size) in preferences maintained by update engine. - What is the target in SetUpdateOverCellularTarget()? When update engine broadcast NEED_PERMISSION_TO_UPDATE, it also broadcasts the metadata of this update such as version and size. We call this target. Once user grants the permission to proceed update over cellular, we call SetUpdateOverCellularTarget() to send the target back to Chrome OS. - Why do we need to send the target back to update engine? There's a corner: When NEED_PERMISSION_TO_UPDATE is broadcasted to chrome UI, an update warning dialog will show the update size to user and ask whether to proceed. If user just keep the dialog window long enough until there's a new update available. Then clicking 'Continue' will result in a much larger download as the update engine only download the lastest update. This rarely happens, but it's more user friendly to consider this case. We send this target back to update engine to make it check with the server. If the target matches the latest update on the server, then update proceeds. Otherwise, update engine needs to broadcast NEED_PERMISSION_TO_UPDATE again with the latest update metadata. - Design doc: go/cros-cellular-updates - Related chromium CL: https://codereview.chromium.org/2873193002/ - Dependent on chromeos CL: https://chromium-review.googlesource.com/#/c/479467/ https://chromium-review.googlesource.com/#/c/481102/ BUG=chromium:691108 TEST=None Review-Url: https://codereview.chromium.org/2881473002 Cr-Commit-Position: refs/heads/master@{#471609} Committed: https://chromium.googlesource.com/chromium/src/+/eaad51c9f5331a5344804453307c3cf5fe1ef259

Patch Set 1 #

Patch Set 2 : Make update over cellular an option for user #

Patch Set 3 : Update DEPS #

Patch Set 4 : modify fake_update_engine_client #

Total comments: 22

Patch Set 5 : Apply fix to patch set 4 #

Patch Set 6 : Apply another fix to patch set 4 #

Total comments: 6

Patch Set 7 : Apply fix to patch set 6 #

Patch Set 8 : remove DEPS as it is already update to date #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -27 lines) Patch
M chrome/browser/chromeos/login/screens/update_screen.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/system_private/system_private_api.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/fake_update_engine_client.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chromeos/dbus/fake_update_engine_client.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/update_engine_client.h View 1 2 3 4 5 6 6 chunks +29 lines, -7 lines 0 comments Download
M chromeos/dbus/update_engine_client.cc View 1 2 3 4 5 6 chunks +44 lines, -19 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 73 (47 generated)
weidongg
alemate@chromium.org, derat@chromium.org: Please review the CL.
3 years, 7 months ago (2017-05-11 15:47:22 UTC) #2
Alexander Alekseev
lgtm
3 years, 7 months ago (2017-05-12 03:47:22 UTC) #17
Daniel Erat
https://codereview.chromium.org/2881473002/diff/60001/chromeos/dbus/fake_update_engine_client.cc File chromeos/dbus/fake_update_engine_client.cc (right): https://codereview.chromium.org/2881473002/diff/60001/chromeos/dbus/fake_update_engine_client.cc#newcode100 chromeos/dbus/fake_update_engine_client.cc:100: // Do nothing. nit: delete this comment. "{}" makes ...
3 years, 7 months ago (2017-05-12 13:37:04 UTC) #18
weidongg
https://codereview.chromium.org/2881473002/diff/60001/chromeos/dbus/fake_update_engine_client.cc File chromeos/dbus/fake_update_engine_client.cc (right): https://codereview.chromium.org/2881473002/diff/60001/chromeos/dbus/fake_update_engine_client.cc#newcode100 chromeos/dbus/fake_update_engine_client.cc:100: // Do nothing. On 2017/05/12 13:37:03, Daniel Erat wrote: ...
3 years, 7 months ago (2017-05-12 16:33:17 UTC) #19
Daniel Erat
https://codereview.chromium.org/2881473002/diff/60001/chromeos/dbus/update_engine_client.cc File chromeos/dbus/update_engine_client.cc (right): https://codereview.chromium.org/2881473002/diff/60001/chromeos/dbus/update_engine_client.cc#newcode489 chromeos/dbus/update_engine_client.cc:489: if (response) { On 2017/05/12 16:33:16, weidongg wrote: > ...
3 years, 7 months ago (2017-05-12 16:44:48 UTC) #20
weidongg
https://codereview.chromium.org/2881473002/diff/60001/chromeos/dbus/update_engine_client.cc File chromeos/dbus/update_engine_client.cc (right): https://codereview.chromium.org/2881473002/diff/60001/chromeos/dbus/update_engine_client.cc#newcode489 chromeos/dbus/update_engine_client.cc:489: if (response) { On 2017/05/12 16:44:48, Daniel Erat wrote: ...
3 years, 7 months ago (2017-05-12 17:00:15 UTC) #21
weidongg
dmazzoni@chromium.org: Please review changes in chrome/browser/extensions/api/system_private/system_private_api.cc
3 years, 7 months ago (2017-05-12 17:58:50 UTC) #23
Daniel Erat
thanks, lgtm w/nits https://codereview.chromium.org/2881473002/diff/100001/chromeos/dbus/update_engine_client.h File chromeos/dbus/update_engine_client.h (right): https://codereview.chromium.org/2881473002/diff/100001/chromeos/dbus/update_engine_client.h#newcode158 chromeos/dbus/update_engine_client.h:158: // Set the target in the ...
3 years, 7 months ago (2017-05-12 18:13:30 UTC) #27
weidongg
Thanks for the code review. https://codereview.chromium.org/2881473002/diff/100001/chromeos/dbus/update_engine_client.h File chromeos/dbus/update_engine_client.h (right): https://codereview.chromium.org/2881473002/diff/100001/chromeos/dbus/update_engine_client.h#newcode158 chromeos/dbus/update_engine_client.h:158: // Set the target ...
3 years, 7 months ago (2017-05-12 18:23:19 UTC) #28
dmazzoni
On 2017/05/12 17:58:50, weidongg wrote: > mailto:dmazzoni@chromium.org: Please review changes in > > chrome/browser/extensions/api/system_private/system_private_api.cc I'm ...
3 years, 7 months ago (2017-05-12 18:54:56 UTC) #29
weidongg
3 years, 7 months ago (2017-05-12 19:43:20 UTC) #31
weidongg
reillyg@chromium.org: Please review the changes in: chrome/browser/extensions/api/system_private/system_private_api.cc
3 years, 7 months ago (2017-05-12 19:45:33 UTC) #32
Reilly Grant (use Gerrit)
lgtm
3 years, 7 months ago (2017-05-12 20:01:53 UTC) #33
weidongg
3 years, 7 months ago (2017-05-12 20:31:38 UTC) #34
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/2881473002/120001
3 years, 7 months ago (2017-05-13 00:49:23 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/453707)
3 years, 7 months ago (2017-05-13 00:58:37 UTC) #53
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/2881473002/120001
3 years, 7 months ago (2017-05-13 01:12:02 UTC) #55
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/436138)
3 years, 7 months ago (2017-05-13 01:19:35 UTC) #57
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/2881473002/120001
3 years, 7 months ago (2017-05-13 01:32:48 UTC) #59
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/436155)
3 years, 7 months ago (2017-05-13 01:40:53 UTC) #61
Daniel Erat
it looks like you have a merge conflict in your DEPS change. please merge and ...
3 years, 7 months ago (2017-05-13 02:20:23 UTC) #62
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/2881473002/140001
3 years, 7 months ago (2017-05-13 02:26:50 UTC) #65
weidongg
On 2017/05/13 02:20:23, Daniel Erat wrote: > it looks like you have a merge conflict ...
3 years, 7 months ago (2017-05-13 02:27:45 UTC) #66
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/453782)
3 years, 7 months ago (2017-05-13 02:50:40 UTC) #68
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/2881473002/140001
3 years, 7 months ago (2017-05-13 22:27:23 UTC) #70
commit-bot: I haz the power
3 years, 7 months ago (2017-05-13 22:49:58 UTC) #73
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/eaad51c9f5331a5344804453307c...

Powered by Google App Engine
This is Rietveld 408576698