Display fetch and policy timestamps separately [chromium/src : main]

86 views
Skip to first unread message

Sergiy Belozorov (Gerrit)

unread,
Sep 24, 2021, 9:01:50 AM9/24/21
to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Chromium LUCI CQ, Roland Bock, chromium...@chromium.org

Sergiy Belozorov removed a vote from this change.

View Change

Removed Commit-Queue+1 by Sergiy Belozorov <ser...@chromium.org>

To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
Gerrit-Change-Number: 3150410
Gerrit-PatchSet: 15
Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
Gerrit-Reviewer: Roland Bock <rb...@google.com>
Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
Gerrit-MessageType: deleteVote

Sergiy Belozorov (Gerrit)

unread,
Sep 27, 2021, 2:26:27 PM9/27/21
to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Chromium LUCI CQ, Roland Bock, chromium...@chromium.org

Attention is currently required from: Roland Bock, Sergiy Belozorov.

Set Ready For Review

View Change

    To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
    Gerrit-Change-Number: 3150410
    Gerrit-PatchSet: 23
    Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Reviewer: Roland Bock <rb...@google.com>
    Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Attention: Roland Bock <rb...@google.com>
    Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Comment-Date: Mon, 27 Sep 2021 18:26:13 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Roland Bock (Gerrit)

    unread,
    Oct 4, 2021, 10:11:57 AM10/4/21
    to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Sergiy Belozorov.

    View Change

    7 comments:

    • Commit Message:

    • Patchset:

      • Patch Set #23:

        Thanks for the CL!

        Some comments while waiting on the previous one :-)

    • File chrome/browser/ui/webui/policy/policy_ui_browsertest.cc:

      • Patch Set #23, Line 538: "(function findPolicyStatuses() {"

        Just curious: Why not use a raw string literal? Might be easier to read without the many `"`?

      • Patch Set #23, Line 550: div:nth-child

        nth-child seems brittle to me (although admittedly, it might work for years).

        How about looking for classes that start with "time-since-"?

      • Patch Set #23, Line 597: base::SimpleTestClock* PolicyUIStatusTest::InitializeClockMock(

        Why not simply create the unique_ptr here? No static_cast, no non-const reference to unique_ptr.

          std::unique_ptr<base::SimpleTestClock> PolicyUIStatusTest::CreateClockMock(
        const base::Time& start) {
        auto mock = std::make_unique<base::SimpleTestClock>();
        raw_mock->Advance(start - raw_mock->Now());
        return mock;
        }
      • Patch Set #23, Line 602: Advance

        Isn't this the same as

          raw_mock->SetNow(start)

        ?
      • Patch Set #23, Line 625: User policies

        Can you add device policies, too?

    To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
    Gerrit-Change-Number: 3150410
    Gerrit-PatchSet: 23
    Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Reviewer: Roland Bock <rb...@google.com>
    Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Comment-Date: Mon, 04 Oct 2021 14:11:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Sergiy Belozorov (Gerrit)

    unread,
    Feb 16, 2022, 1:31:33 PM2/16/22
    to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Chromium LUCI CQ, Roland Bock, chromium...@chromium.org

    Attention is currently required from: Roland Bock.

    View Change

    6 comments:

    • Commit Message:

      • Done

    • File chrome/browser/ui/webui/policy/policy_ui_browsertest.cc:

      • Patch Set #23, Line 538: "(function findPolicyStatuses() {"

        Just curious: Why not use a raw string literal? Might be easier to read without the many `"`?

      • Tried to be consistent with existing code above. Done

      • nth-child seems brittle to me (although admittedly, it might work for years). […]

        Currently, the PolicyUIStatusTest::ReadStatusFor is universal and can read any row in the table in the status box as the value is always in the second column. This makes it easier to add other tests. Adding `time-since-` prefix makes it specific to rows for time. Given the poor coverage for this page, IMHO it's worth making this code a bit brittle, but make it easier to add tests.

      • Why not simply create the unique_ptr here? No static_cast, no non-const reference to unique_ptr. […]

        Replaced with a different system after addressing comments in the base CL.

      • Isn't this the same as […]

        Didn't notice that method. Thanks, done

      • Done

    To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
    Gerrit-Change-Number: 3150410
    Gerrit-PatchSet: 42
    Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Reviewer: Roland Bock <rb...@google.com>
    Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Attention: Roland Bock <rb...@google.com>
    Gerrit-Comment-Date: Wed, 16 Feb 2022 18:31:14 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Roland Bock <rb...@google.com>
    Gerrit-MessageType: comment

    Sergiy Belozorov (Gerrit)

    unread,
    Feb 16, 2022, 1:32:49 PM2/16/22
    to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

    Attention is currently required from: Roland Bock.

    Sergiy Belozorov uploaded patch set #43 to this change.

    View Change

    Display fetch and policy timestamps separately

    When the user attempts to fetch policy without an active network
    connection, we used to still update the "Last fetched" timestamp. This
    CL fixes this by splitting the timestamp into "Last fetch attempted"
    and "Last policy timestamp". The former is always updated, the latter
    is only updated when we have actually fetched an updated policy.

    Bug: b:217860627
    Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
    ---
    M chrome/browser/ash/login/test/embedded_policy_test_server_mixin.cc
    M chrome/browser/ash/login/test/embedded_policy_test_server_mixin.h
    M chrome/browser/ui/webui/policy/policy_ui.cc
    M chrome/browser/ui/webui/policy/policy_ui_browsertest.cc
    M chrome/browser/ui/webui/policy/policy_ui_handler.cc
    M components/policy/core/browser/webui/machine_level_user_cloud_policy_status_provider.cc
    M components/policy/core/browser/webui/policy_status_provider.cc
    M components/policy/core/browser/webui/policy_status_provider.h
    M components/policy/core/common/policy_scheduler.cc
    M components/policy/core/common/policy_scheduler.h
    M components/policy/resources/webui/policy.html
    M components/policy/resources/webui/policy_base.js
    M components/policy_strings.grdp
    A components/policy_strings_grdp/IDS_POLICY_LABEL_TIME_SINCE_LAST_FETCH_ATTEMPT.png.sha1
    A components/policy_strings_grdp/IDS_POLICY_LABEL_TIME_SINCE_LAST_REFRESH.png.sha1
    M ios/chrome/browser/ui/webui/policy/policy_ui.mm
    16 files changed, 282 insertions(+), 28 deletions(-)

    To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
    Gerrit-Change-Number: 3150410
    Gerrit-PatchSet: 43
    Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Reviewer: Roland Bock <rb...@google.com>
    Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
    Gerrit-Attention: Roland Bock <rb...@google.com>
    Gerrit-MessageType: newpatchset

    Sergiy Belozorov (Gerrit)

    unread,
    Feb 16, 2022, 3:14:44 PM2/16/22
    to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Chromium LUCI CQ, Roland Bock, chromium...@chromium.org

    Attention is currently required from: Roland Bock.

    View Change

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 44
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Roland Bock <rb...@google.com>
      Gerrit-Comment-Date: Wed, 16 Feb 2022 20:14:20 +0000

      Roland Bock (Gerrit)

      unread,
      Feb 18, 2022, 8:51:56 AM2/18/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Sergiy Belozorov.

      Patch set 46:Code-Review +1

      View Change

      1 comment:

      • Patchset:

        • Patch Set #46:

          LGTM, but I wonder if it would make sense to split the CL into two:

          1) setup the test machinery with a minimal test of the old behavior
          2) change the behavior

          I could imagine that being easier to review.

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 46
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Comment-Date: Fri, 18 Feb 2022 13:51:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Gerrit-MessageType: comment

      Sergiy Belozorov (Gerrit)

      unread,
      Feb 18, 2022, 9:28:43 AM2/18/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Roland Bock, Chromium LUCI CQ, chromium...@chromium.org

      View Change

      1 comment:

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 47
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Comment-Date: Fri, 18 Feb 2022 14:28:31 +0000

      Sergiy Belozorov (Gerrit)

      unread,
      Feb 18, 2022, 9:43:33 AM2/18/22
      to Gauthier Ambard, Nico Weber, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Sergiy Belozorov, Roland Bock

      Attention is currently required from: Gauthier Ambard, Nico Weber.

      Sergiy Belozorov would like Gauthier Ambard and Nico Weber to review this change.

      View Change

      Display fetch and policy timestamps separately

      When the user attempts to fetch policy without an active network
      connection, we used to still update the "Last fetched" timestamp. This
      CL fixes this by splitting the timestamp into "Last fetch attempted"
      and "Last policy timestamp". The former is always updated, the latter
      is only updated when we have actually fetched an updated policy.

      Bug: b:217860627
      Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      ---
      M chrome/browser/ui/webui/policy/policy_ui.cc
      M chrome/browser/ui/webui/policy/policy_ui_browsertest.cc
      M chrome/browser/ui/webui/policy/policy_ui_handler.cc
      M components/policy/core/browser/webui/machine_level_user_cloud_policy_status_provider.cc
      M components/policy/core/browser/webui/policy_status_provider.cc
      M components/policy/core/browser/webui/policy_status_provider.h
      M components/policy/core/common/policy_scheduler.cc
      M components/policy/core/common/policy_scheduler.h
      M components/policy/resources/webui/policy.html
      M components/policy/resources/webui/policy_base.js
      M components/policy_strings.grdp
      A components/policy_strings_grdp/IDS_POLICY_LABEL_TIME_SINCE_LAST_FETCH_ATTEMPT.png.sha1
      A components/policy_strings_grdp/IDS_POLICY_LABEL_TIME_SINCE_LAST_REFRESH.png.sha1
      M ios/chrome/browser/ui/webui/policy/policy_ui.mm
      14 files changed, 117 insertions(+), 26 deletions(-)


      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 49
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Attention: Nico Weber <tha...@chromium.org>
      Gerrit-MessageType: newchange

      Sergiy Belozorov (Gerrit)

      unread,
      Feb 18, 2022, 9:43:37 AM2/18/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Nico Weber, Gauthier Ambard, Roland Bock, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Gauthier Ambard, Nico Weber.

      View Change

      1 comment:

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 49
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Attention: Nico Weber <tha...@chromium.org>
      Gerrit-Comment-Date: Fri, 18 Feb 2022 14:43:30 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Gerrit-MessageType: comment

      Gauthier Ambard (Gerrit)

      unread,
      Feb 21, 2022, 3:05:00 AM2/21/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Nico Weber, Roland Bock, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Sergiy Belozorov, Nico Weber.

      Patch set 49:Code-Review +1

      View Change

      1 comment:

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 49
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Nico Weber <tha...@chromium.org>
      Gerrit-Comment-Date: Mon, 21 Feb 2022 08:04:45 +0000

      Nico Weber (Gerrit)

      unread,
      Feb 23, 2022, 10:49:08 AM2/23/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Gauthier Ambard, Nico Weber, Roland Bock, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Sergiy Belozorov.

      View Change

      2 comments:

      • Patchset:

        • Patch Set #49:

          Please don't link to buganizer bugs in cl descs, and especially in comments. This is an open-source project with contributors from many places, and contributors from all but one place can't access buganizer.

      • File chrome/browser/ui/webui/policy/policy_ui_handler.cc:

        • Patch Set #49, Line 489: // TODO(b/217860627): Add timeSinceLastFetchAttempt for LaCrOS.

          Let's not link to buganizer bugs in comments.

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 49
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Comment-Date: Wed, 23 Feb 2022 15:48:58 +0000

      Nico Weber (Gerrit)

      unread,
      Feb 23, 2022, 10:57:47 AM2/23/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Gauthier Ambard, Nico Weber, Roland Bock, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Sergiy Belozorov.

      View Change

      1 comment:

      • Patchset:

        • Patch Set #49:

          (Instead, file a crbug that describes the problem, and link to that)

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 49
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Comment-Date: Wed, 23 Feb 2022 15:57:40 +0000

      Sergiy Belozorov (Gerrit)

      unread,
      Feb 23, 2022, 11:12:48 AM2/23/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org

      Attention is currently required from: Sergiy Belozorov.

      Sergiy Belozorov uploaded patch set #50 to this change.

      View Change

      Display fetch and policy timestamps separately

      When the user attempts to fetch policy without an active network
      connection, we used to still update the "Last fetched" timestamp. This
      CL fixes this by splitting the timestamp into "Last fetch attempted"
      and "Last policy timestamp". The former is always updated, the latter
      is only updated when we have actually fetched an updated policy.

      Bug: 1217542

      Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      ---
      M chrome/browser/ui/webui/policy/policy_ui.cc
      M chrome/browser/ui/webui/policy/policy_ui_browsertest.cc
      M chrome/browser/ui/webui/policy/policy_ui_handler.cc
      M components/policy/core/browser/webui/machine_level_user_cloud_policy_status_provider.cc
      M components/policy/core/browser/webui/policy_status_provider.cc
      M components/policy/core/browser/webui/policy_status_provider.h
      M components/policy/core/common/policy_scheduler.cc
      M components/policy/core/common/policy_scheduler.h
      M components/policy/resources/webui/policy.html
      M components/policy/resources/webui/policy_base.js
      M components/policy_strings.grdp
      A components/policy_strings_grdp/IDS_POLICY_LABEL_TIME_SINCE_LAST_FETCH_ATTEMPT.png.sha1
      A components/policy_strings_grdp/IDS_POLICY_LABEL_TIME_SINCE_LAST_REFRESH.png.sha1
      M ios/chrome/browser/ui/webui/policy/policy_ui.mm
      14 files changed, 117 insertions(+), 26 deletions(-)

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 50
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-MessageType: newpatchset

      Nico Weber (Gerrit)

      unread,
      Feb 23, 2022, 11:17:08 AM2/23/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Nico Weber, Gauthier Ambard, Roland Bock, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Sergiy Belozorov.

      Patch set 50:Code-Review +1

      View Change

      1 comment:

      • Patchset:

        • Patch Set #50:

          Other than the bug ref in that one comment, this makes sense to me.

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 50
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Comment-Date: Wed, 23 Feb 2022 16:17:01 +0000

      Sergiy Belozorov (Gerrit)

      unread,
      Feb 23, 2022, 11:51:39 AM2/23/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Nico Weber, Gauthier Ambard, Roland Bock, Chromium LUCI CQ, chromium...@chromium.org

      Patch set 51:Commit-Queue +1

      View Change

      1 comment:

      • File chrome/browser/ui/webui/policy/policy_ui_handler.cc:

        • Patch Set #49, Line 489: // TODO(b/217860627): Add timeSinceLastFetchAttempt for LaCrOS.

          Let's not link to buganizer bugs in comments.

        • Done

      To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
      Gerrit-Change-Number: 3150410
      Gerrit-PatchSet: 51
      Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
      Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
      Gerrit-Reviewer: Roland Bock <rb...@google.com>
      Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
      Gerrit-Comment-Date: Wed, 23 Feb 2022 16:51:24 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: Yes
      Comment-In-Reply-To: Nico Weber <tha...@chromium.org>
      Gerrit-MessageType: comment

      Sergiy Belozorov (Gerrit)

      unread,
      Mar 2, 2022, 9:43:12 AM3/2/22
      to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Nico Weber, Gauthier Ambard, Roland Bock, Chromium LUCI CQ, chromium...@chromium.org

      Attention is currently required from: Sergiy Belozorov.

      Patch set 53:Commit-Queue +2

      View Change

        To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
        Gerrit-Change-Number: 3150410
        Gerrit-PatchSet: 53
        Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
        Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-Reviewer: Roland Bock <rb...@google.com>
        Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
        Gerrit-Attention: Sergiy Belozorov <ser...@chromium.org>
        Gerrit-Comment-Date: Wed, 02 Mar 2022 14:43:00 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: Yes
        Gerrit-MessageType: comment

        Chromium LUCI CQ (Gerrit)

        unread,
        Mar 2, 2022, 10:51:15 AM3/2/22
        to Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Nico Weber, Gauthier Ambard, Roland Bock, chromium...@chromium.org

        Chromium LUCI CQ submitted this change.

        View Change



        50 is the latest approved patch-set.
        The change was submitted with unreviewed changes in the following files:

        ```
        The name of the file: chrome/browser/ui/webui/policy/policy_ui_handler.cc
        Insertions: 1, Deletions: 1.

        The diff is too large to show. Please review the diff.
        ```

        Approvals: Nico Weber: Looks good to me Gauthier Ambard: Looks good to me Roland Bock: Looks good to me Sergiy Belozorov: Commit
        Display fetch and policy timestamps separately

        When the user attempts to fetch policy without an active network
        connection, we used to still update the "Last fetched" timestamp. This
        CL fixes this by splitting the timestamp into "Last fetch attempted"
        and "Last policy timestamp". The former is always updated, the latter
        is only updated when we have actually fetched an updated policy.

        Bug: 1217542
        Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
        Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3150410
        Reviewed-by: Roland Bock <rb...@google.com>
        Reviewed-by: Gauthier Ambard <gam...@chromium.org>
        Reviewed-by: Nico Weber <tha...@chromium.org>
        Commit-Queue: Sergiy Belozorov <ser...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#976674}

        ---
        M chrome/browser/ui/webui/policy/policy_ui.cc
        M chrome/browser/ui/webui/policy/policy_ui_browsertest.cc
        M chrome/browser/ui/webui/policy/policy_ui_handler.cc
        M components/policy/core/browser/webui/machine_level_user_cloud_policy_status_provider.cc
        M components/policy/core/browser/webui/policy_status_provider.cc
        M components/policy/core/browser/webui/policy_status_provider.h
        M components/policy/core/common/policy_scheduler.cc
        M components/policy/core/common/policy_scheduler.h
        M components/policy/resources/webui/policy.html
        M components/policy/resources/webui/policy_base.js
        M components/policy_strings.grdp
        A components/policy_strings_grdp/IDS_POLICY_LABEL_TIME_SINCE_LAST_FETCH_ATTEMPT.png.sha1
        A components/policy_strings_grdp/IDS_POLICY_LABEL_TIME_SINCE_LAST_REFRESH.png.sha1
        M ios/chrome/browser/ui/webui/policy/policy_ui.mm
        14 files changed, 123 insertions(+), 26 deletions(-)


        To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
        Gerrit-Change-Number: 3150410
        Gerrit-PatchSet: 54
        Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-Reviewer: Roland Bock <rb...@google.com>
        Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
        Gerrit-MessageType: merged

        Brandon Tolsch (Gerrit)

        unread,
        Mar 2, 2022, 12:20:20 PM3/2/22
        to Chromium LUCI CQ, Sergiy Belozorov, chromeos-commercial-rem...@google.com, ios-revie...@chromium.org, ios-r...@chromium.org, marq+...@chromium.org, Nico Weber, Gauthier Ambard, Roland Bock, chromium...@chromium.org

        Brandon Tolsch has created a revert of this change.

        View Change

        To view, visit change 3150410. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I97416021b92964deee8d5ebc430d2ac97f1da0e6
        Gerrit-Change-Number: 3150410
        Gerrit-PatchSet: 54
        Gerrit-Owner: Sergiy Belozorov <ser...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Gauthier Ambard <gam...@chromium.org>
        Gerrit-Reviewer: Nico Weber <tha...@chromium.org>
        Gerrit-Reviewer: Roland Bock <rb...@google.com>
        Gerrit-Reviewer: Sergiy Belozorov <ser...@chromium.org>
        Gerrit-MessageType: revert
        Reply all
        Reply to author
        Forward
        0 new messages