summaryrefslogtreecommitdiffstats
path: root/tools/grit
Commit message (Collapse)AuthorAgeFilesLines
* Add support for multi resolution iconssail@chromium.org2011-04-192-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | To support HiDPI we need a way to load two copies of icons, a low resolution version and a high resolution version. To support this, this change does the following: - split theme_resource.grd into three files: - theme_resources.grd: icons that only have one resolution - theme_resources_standard.grd: low resolution icons - theme_resources_large.grd: high resolution icons - theme_resource.grd and theme_resources_standard.grd and compiled into chrome.pak/chrome.rc for all platforms. - theme_resources_large.grd is compiled into theme_resources_large.pak for platforms that want high resolution icons (currently only Mac) - gfx::Image now support icons with multiple resolution Currently not all ThemeService APIs return multi-resolution images. Once this is checked in I'll work on converting them as I go. Note, this change will have to be coordinated with the change to reorganize theme resources. I'll work with saintlou on that. BUG=75812 TEST=Added a TIFF to theme_resources.grd. Verified that the toolbar icon had a mutliresolution image. Verified that unit tests passed. Review URL: http://codereview.chromium.org/6849030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@82185 0039d316-1c4b-4281-b951-d872f2087c98
* Mitigate XSS in the bookmark manager using Content-Security-Policy.abarth@chromium.org2011-04-142-15/+22
| | | | | | | | | We're adding support for Content-Security-Policy (CSP) support to WebKit, which helps prevent XSS by letting sites whitelist where they can load scripts from. This patch adds a CSP policy to the bookmark manager that only allows script loads from extensions and from "chrome" URLs. Adding the policy required only a tiny change the bookmark manager (moving the main script block to be external), but required changing some of the infrastructure for packing component extensions (to avoid inlining external scripts). CSP forbids inline script (and inline event handlers) because it can't tell whether those scripts are a result of XSS. Review URL: http://codereview.chromium.org/6831008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81658 0039d316-1c4b-4281-b951-d872f2087c98
* Roll out 81535 because it tickled an assert in URLRequestResourceBundleJob.abarth@chromium.org2011-04-142-22/+15
| | | | | | Review URL: http://codereview.chromium.org/6855001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81546 0039d316-1c4b-4281-b951-d872f2087c98
* Mitigate XSS in the bookmark manager using Content-Security-Policy.abarth@chromium.org2011-04-142-15/+22
| | | | | | | | | We're adding support for Content-Security-Policy (CSP) support to WebKit, which helps prevent XSS by letting sites whitelist where they can load scripts from. This patch adds a CSP policy to the bookmark manager that only allows script loads from extensions and from "chrome" URLs. Adding the policy required only a tiny change the bookmark manager (moving the main script block to be external), but required changing some of the infrastructure for packing component extensions (to avoid inlining external scripts). CSP forbids inline script (and inline event handlers) because it can't tell whether those scripts are a result of XSS. Review URL: http://codereview.chromium.org/6831008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81535 0039d316-1c4b-4281-b951-d872f2087c98
* Add whitelist support to grit.thomasvl@chromium.org2011-04-134-10/+82
| | | | | | | | | | | | | | | | | | - Support -w path to add whitelists to grit (and grit_info). - Use the whitelist to tag what items should be skipped when generating output. A whitelist is used instead of a blacklist, since there has been some other work into generating what resources are really needed by the build. Another option instead of whitelists would have been to add yet more conditions to the grd files, but they are already getting pretty complex with the conditions already in the files. And looking at trying to do conditions based on features not only made the files more complex, but also doesn't handle the problem when a single feature has some strings that are only valid for a subset of the supported platforms. Review URL: http://codereview.chromium.org/6821056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81393 0039d316-1c4b-4281-b951-d872f2087c98
* Support nested <if> tags for included html.xiyuan@chromium.org2011-04-052-10/+49
| | | | | | | | | | BUG=77971 TEST=Verify fix for issue 77971. STATUS=Fixed Review URL: http://codereview.chromium.org/6793021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80500 0039d316-1c4b-4281-b951-d872f2087c98
* Print a grit debugging hint to stdout when a parse exception occursrhashimoto@chromium.org2011-04-051-1/+3
| | | | | | | | | | | | | to help with locating the error in the .grd file. BUG=none TEST=none Review URL: http://codereview.chromium.org/6760030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80470 0039d316-1c4b-4281-b951-d872f2087c98
* Standardize grit invokesthomasvl@chromium.org2011-03-281-0/+3
| | | | | | | | | | | | | - Add two gypi files to src/build for the boilerplate added to targets and actions - Update grit_info to also support the -E flag so it can share more of the grit build commandline - switch over all but the webkit and webkit glue grd files to use the common support BUG=22247 TEST=everything still localized correctly Review URL: http://codereview.chromium.org/6705030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79548 0039d316-1c4b-4281-b951-d872f2087c98
* WinDDK ATL and MSVC express 2008/2005 compatability mark@chromium.org2011-03-212-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gives 'out of the box' compatability with VC2008 express - i.e. no modifications needed to system headers or .gyp* files or related hacks. Just set the GYP_MSVS_VERSION to 200Xe (e for express, same as the linked blog on the issue and first google hit as well). 1) Changes to build\common.gypi to turn off to define COMPILER_MSVC_EXPRESS if a express is detected (through the GYP_MSVC_VERSION environment variable), turn off the _SECURE_ATL define (which is flagged as an error with WinDDK's ATL, _SECURE_ATL adds [more] CRT checks to other ATL versions) and hard to link to the atl stdthunk library with express editions. Also, explicitly link to the base WinSDK libraries in common.gypi and mini_installer.gypi for MSVC 2005 express. 2) Fixes a few .cc files that have the wrong include order with the ATL headers when using the Windows DDK ATL. The Windows DDK ATL brings in intsafe.h (WinSDK, not WinDDK) with atlwin.h and generates multiple INTXX_MIN/MAX def warnings which get flagged as errors with the warnings as errors flag if not included before other libraries that have the same definitions like ICU. 3) Changes to .rc files to avoid pulling in afxres.h (an MFC header - it's available in the WinDDK) and winres.h which VCExpress doesn't have (it's available in a WinSDK sample, but that kind of the purpose of it). The main Chromium .rc files are already structured this way, I just changed the rest and changed the output of grit to do the same. 4) Removes the memset obj file linking in mini_installer.gyp and simply implements memset for mini_installer.cc. Only changes to the chromium branch now. There are some .rc files in the Python26, Native Client, and Angle in samples that could #3 changes. They are not required for Chromium, however. ------ VC2005SP1 can be downloaded at http://www.microsoft.com/downloads/en/details.aspx?FamilyId=7B0B0339-613A-46E6-AB4D-080D4D4A8C4E&displaylang=en (or non-SP1 at http://download.microsoft.com/download/8/3/a/83aad8f9-38ba-4503-b3cd-ba28c360c27b/ENU/vcsetup.exe) VC2008SP1 can be downloaded at http://www.microsoft.com/downloads/en/details.aspx?FamilyId=F3FBB04E-92C2-4701-B4BA-92E26E408569&displaylang=en currently. The base developer instructions work fine afterwards with a couple tweaks for express versions: http://www.chromium.org/developers/how-tos/build-instructions-windows Under "Additional (free) downloads" under step 2: X) Only the first 3 Non-SP KB Patches are needed for express. Don't forget to forget GYP_MSVS_VERSION environment as appropriate - 2008e for Visual C++ 2008 Express, for example. Under "Additional (free) downloads" after step 5 [These only apply to 2008 express, 2005 works fine out of the box]: 6A) Download the WinDDK for the atl headers and libs - http://msdn.microsoft.com/en-us/windows/hardware/gg487463.aspx. It works fine, but you do not need to install the whole DDK. In the WDK directory just install headers.msi, libs_x86fre.msi, and libs_x64fre.msi; just grab the atl headers and atl*.lib libs; right click the installers and uninstall afterwards. Add the appropriate include and lib paths to your global settings. 6B) To build x64 targets (x64 Native Client) download: http://www.cppblog.com/Files/xcpp/VCE64BIT_WIN7SDK.zip Follow the readme instructions. Further information behind that and x64 target building with express: - http://jenshuebel.wordpress.com/2009/02/12/visual-c-2008-express-edition-and-64-bit-targets/ - http://www.cppblog.com/xcpp/archive/2009/09/09/vc2008express_64bit_win7sdk.html ---------------- BUG=1433, 5026, 72885 TEST=Compiles in both Debug and Release mode in Visual C++ Express 2008/2005 and does not effect other build setups. In addition, the WinDDK ATL compiles with the secure_atl=0 in the GYP_DEFINES environment variable on non-express versions of MSVC. Review URL: http://codereview.chromium.org/6676030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78921 0039d316-1c4b-4281-b951-d872f2087c98
* Compile the devtools grd file into a .pak file so wetony@chromium.org2011-03-175-5/+53
| | | | | | | | | | | | | | | | can include the data in resources.pak. To avoid resource ids colliding between files, we have a global file, resource_ids, that tracks the starting id values. Since the devtools grd file is generated, it's hard to add an entry to |resource_ids|. To work around this, add support for expanding variables in the |resource_ids|. BUG=35793 Review URL: http://codereview.chromium.org/6685061 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78468 0039d316-1c4b-4281-b951-d872f2087c98
* Add ChromeOS as product name to the policy template generatorgfeher@chromium.org2011-03-163-20/+8
| | | | | | | | | | | And clean up other obsolate placeholders. BUG=none TEST=python:PolicyTemplateGenearator.* Review URL: http://codereview.chromium.org/6341007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78357 0039d316-1c4b-4281-b951-d872f2087c98
* Carnitas: Move app_strings to ui/base/stringssail@chromium.org2011-03-081-2/+2
| | | | | | | | | | To fix circular dependencies between ui/base/ui_base.gyp and app/app.gyp I'm moving app_strings to ui/base/strings. BUG=72317 TEST=Compiled on Mac, Linux, Windows. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77337 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 77068 - Carnitas: Move app_strings to ui/base/stringssail@chromium.org2011-03-071-2/+2
| | | | | | | | | | | | | | To fix circular dependencies between ui/base/ui_base.gyp and app/app.gyp I'm moving app_strings to ui/base/strings. BUG=72317 TEST=Compiled on Mac, Linux, Windows. Review URL: http://codereview.chromium.org/6541035 TBR=sail@chromium.org Review URL: http://codereview.chromium.org/6623055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77142 0039d316-1c4b-4281-b951-d872f2087c98
* Carnitas: Move app_strings to ui/base/stringssail@chromium.org2011-03-061-2/+2
| | | | | | | | | | | To fix circular dependencies between ui/base/ui_base.gyp and app/app.gyp I'm moving app_strings to ui/base/strings. BUG=72317 TEST=Compiled on Mac, Linux, Windows. Review URL: http://codereview.chromium.org/6541035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77068 0039d316-1c4b-4281-b951-d872f2087c98
* Fix ADMX template format for Windows Server 2008gfeher@chromium.org2011-03-021-1/+1
| | | | | | | | | BUG=none TEST=Try to open chrome.admx on Windows Server 2008 with gpedit Review URL: http://codereview.chromium.org/6602082 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76527 0039d316-1c4b-4281-b951-d872f2087c98
* Move src/gfx/ to src/ui/gfxsail@chromium.org2011-02-021-1/+1
| | | | | | | | | | | To reduce the size of this change I've left stub header files in src/gfx/. Once all includes have been updated I'll delete the stub files. BUG=71063 TEST=Still doing test builds. Review URL: http://codereview.chromium.org/6246027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73530 0039d316-1c4b-4281-b951-d872f2087c98
* Cloud print proxy enablement under policy control.scottbyer@chromium.org2011-02-021-3/+16
| | | | | | | | | | | | Implement policy control of the cloud print policy, in just the UI part for now (in the service requires some refactoring). BUG=59769 TEST=Change the policy and verifying that the UI in Under the Hood gets disabled or enabled properly, with the policy notification at the top. Review URL: http://codereview.chromium.org/6344013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73523 0039d316-1c4b-4281-b951-d872f2087c98
* Add presubmit checks for grit. This runs the unittests.tony@chromium.org2011-02-024-10/+40
| | | | | | | | | | | | | | | Fix the grd_reader tests to pass if run from any directory (previously, it had to be run from tools/grit). Fix rc_unittest to pass on Linux (it was sensitive to line endings). If the user doesn't have access to the internal repository, there will be lots of failures :( Maybe there's a way to detect this case and skip the tests? Review URL: http://codereview.chromium.org/6349026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73498 0039d316-1c4b-4281-b951-d872f2087c98
* Add a grit define for enabling third_party translations.tony@chromium.org2011-02-017-30/+57
| | | | | | | | | | | | | Turn it off by default and add conditions to chromium_strings.grd for third_party specific outputs. Add the ability to filter xtb files (translations) using if nodes. TEST=still able to compile chrome Review URL: http://codereview.chromium.org/6392033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73314 0039d316-1c4b-4281-b951-d872f2087c98
* Provide better error messages when grit fails to open a file whiletony@chromium.org2011-01-271-2/+10
| | | | | | | | | | flattening. BUG=70185 Review URL: http://codereview.chromium.org/6401001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72853 0039d316-1c4b-4281-b951-d872f2087c98
* Allow ADM(X) templates to manage both MACHINE and USER policiesgfeher@chromium.org2011-01-273-90/+168
| | | | | | | | | | | ADMX policies will have the XML attribute class set to "both", ADM policies will be presented twice, once under CLASS MACHINE, and once under CLASS USER. BUG=70232 TEST=Add chrome.adm to Group Policy Editor and see if Chrome policies appear both under User Configuration and Machine Configuration, and they can be configured independently. Repeat this with chrome.admx. Review URL: http://codereview.chromium.org/6327011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72792 0039d316-1c4b-4281-b951-d872f2087c98
* DevTools: update inspector_strings.grd to match current Inspector'smnaganov@chromium.org2011-01-241-3/+0
| | | | | | | | | | | | | | strings, delete devtools_strings.grd. These strings are only used for Ubuntu Chromium translations, not affecting Chrome release process. BUG=none TEST=none Review URL: http://codereview.chromium.org/6273009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72329 0039d316-1c4b-4281-b951-d872f2087c98
* Fix generating descriptions of policy template stringsgfeher@chromium.org2011-01-192-3/+24
| | | | | | | | | BUG=none TEST=python:PolicyJsonUnittest.* Review URL: http://codereview.chromium.org/6312006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71808 0039d316-1c4b-4281-b951-d872f2087c98
* Remove 'annotations' dictionary in policy_definitions.json.jkummerow@chromium.org2011-01-188-106/+47
| | | | | | | | | | | The former members of the dict are now included directly in the policy definitions. BUG=64898 TEST=existing unit tests in tools/grit/grit/format/policy_templates/ Review URL: http://codereview.chromium.org/6360002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71635 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-1/+1
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71586 0039d316-1c4b-4281-b951-d872f2087c98
* [grit] Avoid intermediate files for HTML inlining when building .pak filesakalin@chromium.org2011-01-146-33/+88
| | | | | | | | | | | | This avoids problems where multiple invocations of grit try to write to the same intermediate file. BUG=69633 TEST=Manually Review URL: http://codereview.chromium.org/6245002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71491 0039d316-1c4b-4281-b951-d872f2087c98
* [Sync] Port about:sync to DOMUIakalin@chromium.org2011-01-141-0/+3
| | | | | | | | | | | | | | | | | Write chrome://sync-internals DOMUI page which is like about:sync but automatically updates on sync events. Make about:sync{,-internals} aliases for chrome://sync-internals. More diagnostic capabilities will be added to chrome://sync-internals in future CLs. BUG=69500 TEST=Manual Review URL: http://codereview.chromium.org/6299002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71435 0039d316-1c4b-4281-b951-d872f2087c98
* Integrate user strings into the JSON policy template filegfeher@chromium.org2011-01-1430-775/+1200
| | | | | | | | | | | The new concept is the following: policy_templates.json contains all the data necessary to generate templates: policy names, English captions, descriptions, etc. This gets translated the following GRIT gatherer: policy_json.py. The text of the translated JSON file is then picked up, parsed, and passed to the writers by template_formatter.py. BUG=64898 TEST=PolicyJsonUnittest.* Review URL: http://codereview.chromium.org/6134006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71421 0039d316-1c4b-4281-b951-d872f2087c98
* Support int-typed policies in policy template generatorjkummerow@chromium.org2011-01-1315-40/+283
| | | | | | | | | | | Also fix bug 69054 (reg_writer erroneously outputs integers as decimal values). BUG=68843, 69054 TEST=tools/grit/grit/format/policy_templates/*_unittest.py Review URL: http://codereview.chromium.org/6176005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71316 0039d316-1c4b-4281-b951-d872f2087c98
* Policy: Add ProxyMode and deprecate ProxyServerMode.danno@chromium.org2011-01-1319-65/+501
| | | | | | | | | | | | | - Add support for 'deprecated' attribute in template generator - Add support for both int- and string- based enums in the template generator - Add logic to handle ProxyMode and fall back to ProxyServerMode BUG=68134 TEST=ConfigurationPolicyPrefStore*, new policy template generator tests Review URL: http://codereview.chromium.org/5958014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71315 0039d316-1c4b-4281-b951-d872f2087c98
* Improved sorting for policy templatesjkummerow@chromium.org2011-01-1110-97/+198
| | | | | | | | | | | | | Mac templates: sort policies alphabetically Linux .json examples: sort policies alphabetically Windows .reg examples: group all policies with type!="list" BUG=61733 TEST=manual inspection of generated policy template files; grit.format.policy_templates.writers.template_writer_unittest Review URL: http://codereview.chromium.org/6137002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71022 0039d316-1c4b-4281-b951-d872f2087c98
* Autofill heuristics regular expressions should be stored in external data files.dhollowa@chromium.org2011-01-051-0/+4
| | | | | | | | | | | This change moves the Autofill heuristics regular expressions out to a new autofill_resources.grd file. This grd file is not meant to be localized. Eventually it will contain the locale-specific regular expressions as well as the English versions. This CL, however, just moves the English versions out of source. BUG=55787 TEST=FormStructureBrowserTest.HTMLFiles Review URL: http://codereview.chromium.org/6026010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70535 0039d316-1c4b-4281-b951-d872f2087c98
* Update grit_info.py to use optparse and add the ability to passtony@chromium.org2011-01-051-16/+40
| | | | | | | | | | | | | | in build defines (e.g., -D chromeos). This will make it possible for us to handle build dependencies in all configurations. I'll make a follow up change that adds the -D flags to the gyp files. BUG=68028 Review URL: http://codereview.chromium.org/6065012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70518 0039d316-1c4b-4281-b951-d872f2087c98
* This fixes resource loading for the virtual keyboard.bryeung@chromium.org2011-01-041-1/+1
| | | | | | | | | BUG=none TEST=the keyboard no longer 404s in touchui builds Review URL: http://codereview.chromium.org/5977007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70447 0039d316-1c4b-4281-b951-d872f2087c98
* html_inline.py: update comments to match reality, fix a small typoevan@chromium.org2011-01-041-3/+2
| | | | | | | | | Though the comments say it doesn't inline CSS, it actually does; I also noticed there's a typo in the CSS-inlining regex. Review URL: http://codereview.chromium.org/6057007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70429 0039d316-1c4b-4281-b951-d872f2087c98
* Implement a ReadyPromptContent that displays a prompt to accept, temporarily ↵erikwright@chromium.org2010-12-141-0/+1
| | | | | | | | | | decline, or permanently decline ready mode. Implement a RegistryReadyModeState that manages the state (based on user's decision) in the registry. Interfaces to integrate those with the installer. BUG=None TEST=chrome_frame_unittests --gtest_filter='Ready*' Review URL: http://codereview.chromium.org/5747002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69175 0039d316-1c4b-4281-b951-d872f2087c98
* Wire the template generator's unit tests into a presubmit scriptgfeher@chromium.org2010-12-131-0/+26
| | | | | | | | | BUG=none TEST=add a failure into the tests and try 'git cl presubmit' Review URL: http://codereview.chromium.org/5725002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69003 0039d316-1c4b-4281-b951-d872f2087c98
* Remove some scons.py files we don't use anymore. They weretony@chromium.org2010-12-021-199/+0
| | | | | | | | | used to get inputs and outputs, but we have other scripts for that now. Review URL: http://codereview.chromium.org/5544001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68091 0039d316-1c4b-4281-b951-d872f2087c98
* Fix example lists and untranslated text in generated policy documentationgfeher@chromium.org2010-11-292-12/+27
| | | | | | | | | | | | | Lists stored in Windows Registry should start numbering from 1 and not from 0. Strings displayed in the generated documentation should not be hard-coded, but come from the .grd file. BUG=64405,64213 TEST=python:DocWriterUnittest.* Review URL: http://codereview.chromium.org/5358004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67566 0039d316-1c4b-4281-b951-d872f2087c98
* Generate .reg files with example values of policiesgfeher@chromium.org2010-11-265-6/+329
| | | | | | | | | BUG=62532 TEST=python:RegWriterUnittest.* Review URL: http://codereview.chromium.org/5328004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67451 0039d316-1c4b-4281-b951-d872f2087c98
* Add version information to the policy templatesgfeher@chromium.org2010-11-1811-87/+192
| | | | | | | | | | | | | | Add for each policy the version number of Chrome when is was introduced. Update platform-based policy filtering to use the new template format (no new logic introduced.) Update the HTML documentation writer to use the new version numbers. BUG=62500 TEST=PolicyTemplateGeneratorUnittest.testPolicyFiltering,DocWriterUnittest.testAddPolicyDetails,DocWriterUnittest.testAddPolicySection Review URL: http://codereview.chromium.org/4704006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66601 0039d316-1c4b-4281-b951-d872f2087c98
* Replace spaces with underscores in keys of Mac stringtables of policiesgfeher@chromium.org2010-11-045-38/+54
| | | | | | | | | BUG=61054 TEST=PListWriterUnittest.*,PListStringsWriterUnittest.* Review URL: http://codereview.chromium.org/4318001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65039 0039d316-1c4b-4281-b951-d872f2087c98
* Generate example JSON policy configuration filesgfeher@chromium.org2010-11-026-20/+325
| | | | | | | | | | | Also fix filtering of single (non-groupped) policies by platforms. BUG=56531 TEST=JsonWriterUnittest.*,PolicyTemplateGeneratorUnittest.testPolicyFiltering Review URL: http://codereview.chromium.org/4164006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64748 0039d316-1c4b-4281-b951-d872f2087c98
* Add ChromeOS to the list of valid platform names in the policy metafilegfeher@chromium.org2010-10-273-0/+5
| | | | | | | | | BUG=58498 TEST=none Review URL: http://codereview.chromium.org/4175001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64054 0039d316-1c4b-4281-b951-d872f2087c98
* Fix adml writer unittest and admx writer unittestmarkusheintz@chromium.org2010-10-072-19/+29
| | | | | | | | | BUG=57528 TEST=run tests Review URL: http://codereview.chromium.org/3628001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61798 0039d316-1c4b-4281-b951-d872f2087c98
* Before if you provided a non-existent tool, grit would give an error message ↵petersont@chromium.org2010-10-061-1/+4
| | | | | | | | referring you to the help, but if you don't provide a tool at all it would just fail. Review URL: http://codereview.chromium.org/3549016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61680 0039d316-1c4b-4281-b951-d872f2087c98
* Shorten the name of policy groups and sort them by captiongfeher@chromium.org2010-10-012-13/+32
| | | | | | | | | | | Also add Chromium vs Google Chrome clarification at the beginning of the generated policy documentation and remove ADM outputs with pseudo-translations. BUG=None TEST=manual Review URL: http://codereview.chromium.org/3605003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61163 0039d316-1c4b-4281-b951-d872f2087c98
* o Add user customizable launch type for apps by adding options in each apps ↵andybons@chromium.org2010-09-301-8/+8
| | | | | | | | | | | | | | | | | | | | | context menu. o Updated some comments that were using the outdated NOTIFY_PREF_CHANGED notification. o Make LAUNCH_PINNED the default type returned by ExtensionPrefs if it does not already exist. o Some minor refactoring within the code to reduce duplication. BUG=54731 TEST=NONE patch from issue 3419010 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60997 Reverted: http://crrev.com/61000 Review URL: http://codereview.chromium.org/3453029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61021 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 60997 - o Add user customizable launch type for apps by adding ↵andybons@chromium.org2010-09-291-8/+8
| | | | | | | | | | | | | | | | | | | | options in each apps context menu. o Updated some comments that were using the outdated NOTIFY_PREF_CHANGED notification. o Make LAUNCH_PINNED the default type returned by ExtensionPrefs if it does not already exist. o Some minor refactoring within the code to reduce duplication. BUG=54731 TEST=NONE patch from issue 3419010 Review URL: http://codereview.chromium.org/3453029 TBR=andybons@chromium.org Review URL: http://codereview.chromium.org/3517004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61000 0039d316-1c4b-4281-b951-d872f2087c98
* o Add user customizable launch type for apps by adding options in each apps ↵andybons@chromium.org2010-09-291-8/+8
| | | | | | | | | | | | | | | | | context menu. o Updated some comments that were using the outdated NOTIFY_PREF_CHANGED notification. o Make LAUNCH_PINNED the default type returned by ExtensionPrefs if it does not already exist. o Some minor refactoring within the code to reduce duplication. BUG=54731 TEST=NONE patch from issue 3419010 Review URL: http://codereview.chromium.org/3453029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60997 0039d316-1c4b-4281-b951-d872f2087c98