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

Issue 2887913004: [Night Light] CL4: Automatic schedule backend. (Closed)

Created:
3 years, 7 months ago by afakhry
Modified:
3 years, 6 months ago
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Night Light] CL4: Automatic schedule backend. Implements the backend work for the NightLight automatic scheduling. BUG=705816 TEST=ash_unittests --gtest_filter=NightLightTest.* TEST=ash_unittests --gtest_filter=TimeOfDayTest.* Review-Url: https://codereview.chromium.org/2887913004 Cr-Commit-Position: refs/heads/master@{#477700} Committed: https://chromium.googlesource.com/chromium/src/+/0057494ad8732195794a7b32078424f92a5fce41

Patch Set 1 #

Patch Set 2 : WIP2 #

Patch Set 3 : Working #

Total comments: 52

Patch Set 4 : James' comments #

Total comments: 7

Patch Set 5 : Comments #

Total comments: 1

Patch Set 6 : Skip test on mash_unittests #

Total comments: 8

Patch Set 7 : Rebase #

Patch Set 8 : mcasas and jshin comments #

Patch Set 9 : Rebase #

Total comments: 2

Patch Set 10 : jshin's comments #

Patch Set 11 : Remove all geolocation code for now. #

Total comments: 6

Patch Set 12 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+867 lines, -24 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download
M ash/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ash/public/cpp/ash_pref_names.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ash/public/cpp/ash_pref_names.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M ash/system/night_light/night_light_controller.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +97 lines, -2 lines 0 comments Download
M ash/system/night_light/night_light_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +280 lines, -16 lines 0 comments Download
M ash/system/night_light/night_light_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 11 chunks +284 lines, -6 lines 0 comments Download
A ash/system/night_light/time_of_day.h View 1 2 3 4 1 chunk +52 lines, -0 lines 0 comments Download
A ash/system/night_light/time_of_day.cc View 1 2 3 4 1 chunk +57 lines, -0 lines 0 comments Download
A ash/system/night_light/time_of_day_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +72 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (30 generated)
afakhry
James, I hope you are in a better health today! This CL is a bit ...
3 years, 7 months ago (2017-05-23 04:07:42 UTC) #3
James Cook
https://codereview.chromium.org/2887913004/diff/40001/ash/public/cpp/ash_pref_names.cc File ash/public/cpp/ash_pref_names.cc (right): https://codereview.chromium.org/2887913004/diff/40001/ash/public/cpp/ash_pref_names.cc#newcode24 ash/public/cpp/ash_pref_names.cc:24: // 2 -> NightLight schedule times is customly set ...
3 years, 7 months ago (2017-05-23 16:34:59 UTC) #4
afakhry
+mcasas@ for a question about using the GeolocationProvider API. https://codereview.chromium.org/2887913004/diff/40001/ash/public/cpp/ash_pref_names.cc File ash/public/cpp/ash_pref_names.cc (right): https://codereview.chromium.org/2887913004/diff/40001/ash/public/cpp/ash_pref_names.cc#newcode24 ash/public/cpp/ash_pref_names.cc:24: ...
3 years, 7 months ago (2017-05-24 04:21:12 UTC) #7
James Cook
Code LGTM but do not land until mcasas has reviewed and geolocation opt-in is clarified. ...
3 years, 7 months ago (2017-05-24 15:42:47 UTC) #8
afakhry
Thanks, James! +jshin@chromium.org for OWNERS review of adding '+third_party/icu' to the DEPS file. https://codereview.chromium.org/2887913004/diff/60001/ash/system/night_light/night_light_controller.cc File ...
3 years, 7 months ago (2017-05-24 16:25:35 UTC) #10
afakhry
On 2017/05/24 16:25:35, afakhry wrote: > Thanks, James! > > mailto:+jshin@chromium.org for OWNERS review of ...
3 years, 7 months ago (2017-05-25 16:09:49 UTC) #11
afakhry
Also question to jshin, can we make third_party/icu/source/i18n/astro.h a public header? I need this to ...
3 years, 7 months ago (2017-05-25 16:44:11 UTC) #20
mcasas
https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc File ash/system/night_light/night_light_controller.cc (right): https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc#newcode53 ash/system/night_light/night_light_controller.cc:53: geolocation_subscription_ = geolocation_provider->AddLocationUpdateCallback( This will also enable Wifi-based location ...
3 years, 7 months ago (2017-05-25 16:52:28 UTC) #21
afakhry
https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc File ash/system/night_light/night_light_controller.cc (right): https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc#newcode53 ash/system/night_light/night_light_controller.cc:53: geolocation_subscription_ = geolocation_provider->AddLocationUpdateCallback( On 2017/05/25 16:52:27, mcasas wrote: > ...
3 years, 7 months ago (2017-05-25 17:49:59 UTC) #22
jungshik at Google
filed https://bugs.chromium.org/p/chromium/issues/detail?id=726654 https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc File ash/system/night_light/night_light_controller.cc (right): https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc#newcode15 ash/system/night_light/night_light_controller.cc:15: #include "third_party/icu/source/i18n/astro.h" You're not supposed to use ...
3 years, 7 months ago (2017-05-26 10:03:48 UTC) #24
jungshik at Google
On 2017/05/26 10:03:48, jungshik at Google wrote: > filed https://bugs.chromium.org/p/chromium/issues/detail?id=726654 > > https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc > File ...
3 years, 7 months ago (2017-05-26 10:14:37 UTC) #25
mcasas
https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc File ash/system/night_light/night_light_controller.cc (right): https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc#newcode53 ash/system/night_light/night_light_controller.cc:53: geolocation_subscription_ = geolocation_provider->AddLocationUpdateCallback( On 2017/05/25 17:49:59, afakhry wrote: > ...
3 years, 7 months ago (2017-05-26 15:39:17 UTC) #26
jungshik at Google
On 2017/05/26 10:03:48, jungshik at Google wrote: > filed https://bugs.chromium.org/p/chromium/issues/detail?id=726654 > > https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc > File ...
3 years, 7 months ago (2017-05-26 18:58:47 UTC) #27
afakhry
https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc File ash/system/night_light/night_light_controller.cc (right): https://codereview.chromium.org/2887913004/diff/100001/ash/system/night_light/night_light_controller.cc#newcode15 ash/system/night_light/night_light_controller.cc:15: #include "third_party/icu/source/i18n/astro.h" On 2017/05/26 10:03:48, jungshik at Google wrote: ...
3 years, 7 months ago (2017-05-26 21:55:56 UTC) #28
afakhry
jshin@ Now that the astro.h has been made public and the trybots are not complaining ...
3 years, 6 months ago (2017-06-02 16:07:43 UTC) #33
jungshik at Google
ash icu dependency lgtm. Please, address the following issue. https://codereview.chromium.org/2887913004/diff/160001/ash/system/night_light/time_of_day_unittest.cc File ash/system/night_light/time_of_day_unittest.cc (right): https://codereview.chromium.org/2887913004/diff/160001/ash/system/night_light/time_of_day_unittest.cc#newcode31 ash/system/night_light/time_of_day_unittest.cc:31: ...
3 years, 6 months ago (2017-06-05 23:17:43 UTC) #34
afakhry
jshin, thanks! james, we started the UI review for the permission dialog. I will upload ...
3 years, 6 months ago (2017-06-06 00:07:18 UTC) #37
afakhry
James, I removed all geolocation code for now, until we finalize the user permission dialog. ...
3 years, 6 months ago (2017-06-06 20:56:23 UTC) #42
James Cook
LGTM with a nit and some optional ideas https://codereview.chromium.org/2887913004/diff/200001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2887913004/diff/200001/ash/BUILD.gn#newcode857 ash/BUILD.gn:857: "//device/geolocation", ...
3 years, 6 months ago (2017-06-07 01:00:15 UTC) #45
afakhry
https://codereview.chromium.org/2887913004/diff/200001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2887913004/diff/200001/ash/BUILD.gn#newcode857 ash/BUILD.gn:857: "//device/geolocation", On 2017/06/07 01:00:14, James Cook wrote: > Not ...
3 years, 6 months ago (2017-06-07 16:19:43 UTC) #46
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/2887913004/220001
3 years, 6 months ago (2017-06-07 16:20:16 UTC) #49
commit-bot: I haz the power
3 years, 6 months ago (2017-06-07 17:47:39 UTC) #52
Message was sent while issue was closed.
Committed patchset #12 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/0057494ad8732195794a7b320784...

Powered by Google App Engine
This is Rietveld 408576698