New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 745889 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 134849
Owner:
Email to this user bounced
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome , Mac
Pri: 2
Type: Feature



Sign in to add a comment

[FR] Add export button to about:policy

Project Member Reported by georgesak@chromium.org, Jul 18 2017

Issue description

about:policy is an internal page that presents all currently configured policies on the machine, from all policy sources (local or cloud).

This information is sometimes useful for debugging and validation. Giving an option to export this information would be very helpful to that effect.

Proposed export format is JSON.
 
FWIW, Right click -> Save As has served us reasonably well for quite a few years :)
Cc: georgesak@chromium.org
Owner: urusant@google.com
@1

Yes, you can save the page, but it makes scraping it harder if you want to have an automated tool do anything interesting with it. JSON, on the other hand, would be much simpler.

And we have plans to do so in the near future :)
Project Member

Comment 4 by bugdroid1@chromium.org, Aug 10 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc

commit cd9784aa3a6ff1aa8371eb25095bacac9428c4fc
Author: Anton Urusov <urusant@google.com>
Date: Thu Aug 10 21:00:21 2017

Added button to export policies in JSON format.

This change adds a button to the about:policy that exports the policies
that are set in JSON format.

Bug:  745889 
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I6c8cf965346b51cb82d1baebc3f0becb35a29634
Reviewed-on: https://chromium-review.googlesource.com/579568
Commit-Queue: Anton Urusov <urusant@google.com>
Reviewed-by: Georges Khalil <georgesak@chromium.org>
Reviewed-by: Julian Pastarmov <pastarmovj@chromium.org>
Reviewed-by: Tommy Li <tommycli@chromium.org>
Cr-Commit-Position: refs/heads/master@{#493540}
[modify] https://crrev.com/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc/chrome/browser/resources/policy.css
[modify] https://crrev.com/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc/chrome/browser/resources/policy.html
[modify] https://crrev.com/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc/chrome/browser/resources/policy.js
[modify] https://crrev.com/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc/chrome/browser/ui/webui/policy_ui.cc
[modify] https://crrev.com/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc/chrome/browser/ui/webui/policy_ui_browsertest.cc
[modify] https://crrev.com/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc/chrome/browser/ui/webui/policy_ui_handler.cc
[modify] https://crrev.com/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc/chrome/browser/ui/webui/policy_ui_handler.h
[modify] https://crrev.com/cd9784aa3a6ff1aa8371eb25095bacac9428c4fc/components/policy_strings.grdp

Comment 5 by urusant@google.com, Sep 12 2017

Status: Fixed (was: Assigned)
Labels: M-61
Tested this in M-61, the "Export to JSON" button is not present on chrome://policy page.

M	Chrome OS	Chrome	        ARC	        Type	Channel
61	9765.76.0	61.0.3163.113	(multiple)	release	stable

However, this button is present in M-62, it allows to save policy to the policies.json file.

M	Chrome OS	Chrome    	ARC	Type	Channel
62	9901.37.0	62.0.3202.44	4372619	release	dev
Labels: -M-61 M-62
Yes, that is normal, the change was landed in 62.

I changed the label accordingly.
Cc: ligim...@chromium.org pucchakayala@chromium.org
+Chrome Browser Enterprise TE, for verification on Linux/Mac/Windows
Mergedinto: 134849
Status: Duplicate (was: Fixed)

Sign in to add a comment