summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy
Commit message (Collapse)AuthorAgeFilesLines
* Revert 69753 - Added group policy for disabling all client-side 3D APIs in ↵chase@chromium.org2010-12-203-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Chromium (in particular, WebGL and Pepper 3D). This has been hooked up through a new command-line argument (--disable-3d-apis) orthogonal to the existing ones, so that further changes to those command line arguments will not accidentally regress the group policy support. Tested in the following ways: - Verified that --disable-3d-apis disables WebGL and Pepper 3D support on Mac OS X. - Verified that specifying the Disable3DAPIs policy via a JSON file disables WebGL on Linux. - Ran unit_tests and verified that there were no failures introduced. BUG=64806 TEST=ConfigurationPolicyPrefStoreBooleanTest Review URL: http://codereview.chromium.org/5991003 TBR=kbr@chromium.org Review URL: http://codereview.chromium.org/6027004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69759 0039d316-1c4b-4281-b951-d872f2087c98
* Added group policy for disabling all client-side 3D APIs in Chromiumkbr@chromium.org2010-12-203-1/+8
| | | | | | | | | | | | | | | | | | | | | (in particular, WebGL and Pepper 3D). This has been hooked up through a new command-line argument (--disable-3d-apis) orthogonal to the existing ones, so that further changes to those command line arguments will not accidentally regress the group policy support. Tested in the following ways: - Verified that --disable-3d-apis disables WebGL and Pepper 3D support on Mac OS X. - Verified that specifying the Disable3DAPIs policy via a JSON file disables WebGL on Linux. - Ran unit_tests and verified that there were no failures introduced. BUG=64806 TEST=ConfigurationPolicyPrefStoreBooleanTest Review URL: http://codereview.chromium.org/5991003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69753 0039d316-1c4b-4281-b951-d872f2087c98
* Allow default desktop content settings and default geolocation settings to ↵markusheintz@chromium.org2010-12-202-12/+21
| | | | | | | | | | | be managed via policy. (Support for the Cocoa UI will be added via a separate CL) BUG=63190,63187, 63180 TEST=none Review URL: http://codereview.chromium.org/5398001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69707 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded includes of notification_service.h, part 2.thestig@chromium.org2010-12-171-1/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5928003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69576 0039d316-1c4b-4281-b951-d872f2087c98
* Almost done deinlining virtual methods.erg@google.com2010-12-162-9/+28
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5841002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69470 0039d316-1c4b-4281-b951-d872f2087c98
* Move GUID utils to src/chrome/common.sergeyu@chromium.org2010-12-151-1/+1
| | | | | | | | | BUG=None TEST=compiles,unittests Review URL: http://codereview.chromium.org/5849001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69347 0039d316-1c4b-4281-b951-d872f2087c98
* Really apply the temp fix for hitting I/O on the main thread. Already approved.avi@chromium.org2010-12-151-1/+1
| | | | | | | | | | BUG=66453 TEST=none Review URL: http://codereview.chromium.org/5762002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69259 0039d316-1c4b-4281-b951-d872f2087c98
* Policy refresh hits the registry (an I/O operation) on the main thread.avi@chromium.org2010-12-141-0/+5
| | | | | | | | | BUG=66453 TEST=none Review URL: http://codereview.chromium.org/5762002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69131 0039d316-1c4b-4281-b951-d872f2087c98
* Fix policy refresh.danno@chromium.org2010-12-142-8/+8
| | | | | | | | | BUG=none TEST=change linux policy and check that it's refreshed Review URL: http://codereview.chromium.org/5732002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69126 0039d316-1c4b-4281-b951-d872f2087c98
* Deinline even more destructors.erg@google.com2010-12-146-3/+12
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5794003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69084 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded browser_thread.h usage.thestig@chromium.org2010-12-133-3/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5676004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69037 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequestJob URLRequestJob;tfarina@chromium.org2010-12-111-1/+1
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/5607004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68935 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leaks in AsynchronousPolicyProvider.danno@chromium.org2010-12-102-9/+11
| | | | | | | | | BUG=66102, 66054 TEST=valgrind on linux and mac Review URL: http://codereview.chromium.org/5748002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68844 0039d316-1c4b-4281-b951-d872f2087c98
* This is a continuation of http://codereview.chromium.org/5519016/, adds a ↵satish@chromium.org2010-12-091-8/+9
| | | | | | | | | | | | | new GetInstance() method for remaining files with singleton classes under chrome/browser. For types declared and used within the same .cc file, I changed them over to LazyInstance<T>. BUG=65298 TEST=all existing tests should continue to pass. Review URL: http://codereview.chromium.org/5711001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68739 0039d316-1c4b-4281-b951-d872f2087c98
* Sanitize PrefStore interface.mnissler@chromium.org2010-12-093-65/+68
| | | | | | | | | | | | | | | | | This reworks the PrefStore interface, specifically: - Split up the interface into PrefStore, which only provides reading functionality, and the derived PersistentPrefStore for the actual user pref store - Remove the hurt-me-plenty prefs() function from PrefStore, instead provide Get/Set/Remove operations - Remove special handling of default and user pref store from PrefValueStore and put it into PrefService - Pref change notification handling now almost exclusively handled through PrefValueStore - Adjust all consumers of these interfaces (but keep ConfigurationPolicyPrefStore untouched, that's up next on the list) BUG=64232 TEST=existing unit tests Review URL: http://codereview.chromium.org/5646003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68736 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor FileBasedPolicyProvider, introduce AsynchronousPolicyProvider.danno@chromium.org2010-12-0921-534/+953
| | | | | | | | | | | Create a superclass of FileBasedPolicyProvider that abstracts how a provider can provide policy on the UI thread that is loaded from the FILE thread. BUG=65094 TEST=AsynchronousPolicyProvider.* Review URL: http://codereview.chromium.org/5562002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68735 0039d316-1c4b-4281-b951-d872f2087c98
* Add the "virtual" keyword on method overrides that are missing it.erg@google.com2010-12-082-5/+5
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5648004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68606 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up pref change notification handling.mnissler@chromium.org2010-12-081-1/+0
| | | | | | | | | | | | | | | This is a complete overhaul of PrefValueStore, PrefStore, PrefNotifier, and PrefService. Specifically: - Add an observer interface to PrefStore that can be used to notify the upper layers of the pref system about value changes. Currently, it's unused mostly, but that'll change when we refactor ExtensionPrefStore and ConfigurationPolicyPrefStore. - Make PrefNotifier be a dependency of PrefValueStore. That helps in keeping the pref change detection handling local to PrefValueStore. - Clean up related unit tests, removing redundant mocks and gmockify others. BUG=64893 TEST=Compiles and passes tests Review URL: http://codereview.chromium.org/5441002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68574 0039d316-1c4b-4281-b951-d872f2087c98
* Move more code from headers to implementation.erg@google.com2010-12-076-19/+40
| | | | | | | | | BUG=none TEST=compiles Review URL: http://codereview.chromium.org/5624002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68534 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unneeded browser_process.h includes.thestig@chromium.org2010-12-051-1/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5512009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68323 0039d316-1c4b-4281-b951-d872f2087c98
* fix buildben@chromium.org2010-12-021-1/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68074 0039d316-1c4b-4281-b951-d872f2087c98
* Move:ben@chromium.org2010-12-025-5/+5
| | | | | | | | | | | | | | | file_path_watcher into subdir profile* into profiles/ subdir login* into ui/login visitedlink* into subdir BUG=none TEST=none TBR=brettw Review URL: http://codereview.chromium.org/5606002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68069 0039d316-1c4b-4281-b951-d872f2087c98
* Move:ben@chromium.org2010-12-021-1/+1
| | | | | | | | | | | | | | | | | | | | tab_menu_model->ui/tabs tab_contents_wrapper->ui/tab_contents view_ids.h->ui status_bubble.h->ui options*->ui/options show_options_url*->ui/options location_bar*->ui/omnibox input_window*->ui browser_uitests->ui/tests BUG=none TEST=none TBR=brettw Review URL: http://codereview.chromium.org/5582002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@68047 0039d316-1c4b-4281-b951-d872f2087c98
* Remove duplicate NotificationObserver mock.mnissler@chromium.org2010-12-011-2/+2
| | | | | | | | | BUG=none TEST=Compiles and passes tests. Review URL: http://codereview.chromium.org/5448001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67848 0039d316-1c4b-4281-b951-d872f2087c98
* net: Remove typedef net::URLRequest URLRequest;tfarina@chromium.org2010-11-301-5/+5
| | | | | | | | | BUG=64263 TEST=compiled locally, trybots Review URL: http://codereview.chromium.org/5384002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67762 0039d316-1c4b-4281-b951-d872f2087c98
* Unmanaged devices should forget device id/tokendanno@chromium.org2010-11-292-0/+30
| | | | | | | | | | | Device token/id should be erased when device management sever reports "not managed" from policy request. BUG=64613 TEST=DeviceManagementPolicyProviderTest.DeviceNoLongerManaged Review URL: http://codereview.chromium.org/5346005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67600 0039d316-1c4b-4281-b951-d872f2087c98
* Persist 'this device is not managed' informationjkummerow@chromium.org2010-11-296-82/+257
| | | | | | | | | | | | | | This is necessary backend work for fixing bug 64314 (make login wait only for the first registration check). It also enables subsequent polling of the DM server at defined intervals (rather than at each login, or never). BUG=64314 TEST=unit tests: DeviceManagementPolicyProviderTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67530 Review URL: http://codereview.chromium.org/5331008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67535 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 67530 - Persist 'this device is not managed' informationjkummerow@chromium.org2010-11-296-255/+79
| | | | | | | | | | | | | | | This is necessary backend work for fixing bug 64314 (make login wait only for the first registration check). It also enables subsequent polling of the DM server at defined intervals (rather than at each login, or never). BUG=64314 TEST=unit tests: DeviceManagementPolicyProviderTest.* Review URL: http://codereview.chromium.org/5331008 TBR=jkummerow@chromium.org Review URL: http://codereview.chromium.org/5321011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67531 0039d316-1c4b-4281-b951-d872f2087c98
* Persist 'this device is not managed' informationjkummerow@chromium.org2010-11-296-79/+255
| | | | | | | | | | | | This is necessary backend work for fixing bug 64314 (make login wait only for the first registration check). It also enables subsequent polling of the DM server at defined intervals (rather than at each login, or never). BUG=64314 TEST=unit tests: DeviceManagementPolicyProviderTest.* Review URL: http://codereview.chromium.org/5331008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67530 0039d316-1c4b-4281-b951-d872f2087c98
* Tweaks to POST request to device management serverdanno@chromium.org2010-11-263-7/+11
| | | | | | | | | BUG=64430 TEST=POST request closer to reference implementation Review URL: http://codereview.chromium.org/5388001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67444 0039d316-1c4b-4281-b951-d872f2087c98
* Chrome should re-generate Device Token when DMServer doesn't recognize it.danno@chromium.org2010-11-262-8/+47
| | | | | | | | | BUG=64318 TEST=DeviceManagementPolicyProviderTest.DeviceNotFound Review URL: http://codereview.chromium.org/5341004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67440 0039d316-1c4b-4281-b951-d872f2087c98
* Don't register gmail users at the device management servergfeher@chromium.org2010-11-257-57/+182
| | | | | | | | | | | Make DeviceTokenFetcher wait until the name of the logged-in user is broadcasted, and only allow registering at DMServer if the user has a non-gmail address. BUG=62477 TEST=DeviceTokenFetcherTest.FetchBetweenTokenNotifyAndLoginNotify,DeviceTokenFetcherTest.FetchWithNonDasherUsername Review URL: http://codereview.chromium.org/4960003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67412 0039d316-1c4b-4281-b951-d872f2087c98
* Make the device management service send a proper user agent.mnissler@chromium.org2010-11-251-0/+10
| | | | | | | | | BUG=None TEST=compiles and passes tests Review URL: http://codereview.chromium.org/5293005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67406 0039d316-1c4b-4281-b951-d872f2087c98
* Device management constants cleanupjkummerow@chromium.org2010-11-248-15/+52
| | | | | | | | | | | | | | • Move device management protocol constants into shared header file • Filter out policies with unwanted keys when decoding server response This also fixes bug 62058. BUG=62481 TEST=existing unit tests still work: DeviceManagementPolicyProviderTest.*:DeviceTokenFetcherTest.* Review URL: http://codereview.chromium.org/5348001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67259 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup mock device management backenddanno@chromium.org2010-11-244-241/+91
| | | | | | | | | | | Add actions for mock device management backend for request success and failure. BUG=62482 TEST=DeviceManagementPolicyProviderTest*:DeviceTokenFetcherTest* Review URL: http://codereview.chromium.org/5338004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67255 0039d316-1c4b-4281-b951-d872f2087c98
* Some cosmetic fixups to the device management service.mnissler@chromium.org2010-11-231-14/+12
| | | | | | | | | | | | | This renames DeviceManagementBackendRequestContext(Getter) to DeviceManagementRequestContext(Getter), actually instantiates it and updates a comment. BUG=63608 TEST=compiles and passes tests Review URL: http://codereview.chromium.org/5292003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67114 0039d316-1c4b-4281-b951-d872f2087c98
* Refresh policies from DM server periodicallyjkummerow@chromium.org2010-11-2311-88/+345
| | | | | | | | | | | Also, this takes care of retrying when policy fetching fails. BUG=62487 TEST=unit tests: DeviceManagementPolicyProviderTest.*:DeviceTokenFetcherTest.* Review URL: http://codereview.chromium.org/5219006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67091 0039d316-1c4b-4281-b951-d872f2087c98
* Always send the device ID when making device management requests.mnissler@chromium.org2010-11-229-92/+160
| | | | | | | | | | | While at it, clean up use of policy constants. BUG=62060 TEST=Compiles and passes existing tests. Review URL: http://codereview.chromium.org/5162006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66949 0039d316-1c4b-4281-b951-d872f2087c98
* Use a service to create device management backends.mnissler@chromium.org2010-11-2212-372/+791
| | | | | | | | | | | | | | | Move responsibility for creating backend objects to a device management service object that lives in the profile. Doing allows us to make use of the profile's request context, which has the advantage over the independent request context implementation that stuff is more efficient (i.e. we need to only resolve the proxy once). BUG=63608 TEST=device_management_service_(unit|browser)test.cc Review URL: http://codereview.chromium.org/5153002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66948 0039d316-1c4b-4281-b951-d872f2087c98
* Make comments about profile pointer in pref_value_store more informative.mnissler@chromium.org2010-11-221-5/+3
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/5212005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66930 0039d316-1c4b-4281-b951-d872f2087c98
* Move DeviceManagementPolicyProvider into the profile.mnissler@chromium.org2010-11-198-67/+97
| | | | | | | | | | | Previously, we used only one provider, which would break in situations where there are two profiles (which ChromeOS already does), because it would apply the policy to both profiles and not only the logged in one. For this to work properly, we also need to pass the relevant TokenService instance the DeviceTokenFetcher, so the fetcher can decide whether the token is relevant to it by checking whether the TokenService that sent it is the one associated with the right profile. BUG=63608 TEST=existing unit tests succeed Review URL: http://codereview.chromium.org/5174006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66755 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "net: Plumb DnsCertProvenanceChecker around."agl@chromium.org2010-11-181-1/+0
| | | | | | | This reverts commit r66623. Some how it causes libnspr4.dll to be linked in Chrome Frame builds. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66687 0039d316-1c4b-4281-b951-d872f2087c98
* net: Plumb DnsCertProvenanceChecker around.agl@chromium.org2010-11-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | DnsCertProvenanceChecker is introduced to abstract away the action of uploading reports. It's implemented by ChromeDnsCertProvenanceChecker which lives in a scoped_ptr off of a URLRequestContext. It's only active on the main context (i.e. not in incognito mode). This might change in the future, but it's a nice, conservative choice for the moment. The DnsCertProvenanceChecker is plumbed all the way to SSLClientSocket (via HttpCache) where it replaces the DnsRRResolver. Above SSLClientSocket, it's plumbed in addition to the DnsRRResolver because the later will end up going into SSLHostInfo in the future. At the moment, ChromeDnsCertProvenanceCheckerContext is just a skeleton to avoid putting too much real code in a plumbing job. BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66623 0039d316-1c4b-4281-b951-d872f2087c98
* Update the device-management protocol buffer.markusheintz@chromium.org2010-11-173-3/+5
| | | | | | | | | BUG=63469 TEST=none Review URL: http://codereview.chromium.org/5118003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66456 0039d316-1c4b-4281-b951-d872f2087c98
* No persisted device id/token for unmanaged devicesjkummerow@chromium.org2010-11-174-1/+46
| | | | | | | | | BUG=62476 TEST=unit_tests: DeviceTokenFetcherTest.UnmanagedDevice Review URL: http://codereview.chromium.org/4967005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66440 0039d316-1c4b-4281-b951-d872f2087c98
* CrOS policies: Store device ID with device tokenjkummerow@chromium.org2010-11-174-18/+71
| | | | | | | | | | | BUG=62798 TEST=unit tests: DeviceTokenFetcherTest.StoreAndLoad Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=66415 Review URL: http://codereview.chromium.org/4949003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66435 0039d316-1c4b-4281-b951-d872f2087c98
* Create additional PrefStore for Device Management policy.markusheintz@chromium.org2010-11-172-18/+42
| | | | | | | | | | | BUG=62478 TEST=PrefValueStore*:PrefService* Committing for danno@chromium.org Review URL: http://codereview.chromium.org/4876002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66426 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 66415 - CrOS policies: Store device ID with device tokenjkummerow@chromium.org2010-11-174-70/+18
| | | | | | | | | | | | BUG=62798 TEST=unit tests: DeviceTokenFetcherTest.StoreAndLoad Review URL: http://codereview.chromium.org/4949003 TBR=jkummerow@chromium.org Review URL: http://codereview.chromium.org/5166001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66416 0039d316-1c4b-4281-b951-d872f2087c98
* CrOS policies: Store device ID with device tokenjkummerow@chromium.org2010-11-174-18/+70
| | | | | | | | | BUG=62798 TEST=unit tests: DeviceTokenFetcherTest.StoreAndLoad Review URL: http://codereview.chromium.org/4949003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66415 0039d316-1c4b-4281-b951-d872f2087c98
* Use a GUID as device ID for registration.jkummerow@chromium.org2010-11-162-12/+6
| | | | | | | | | | | (Remembering the device ID for later usage will be implemented in another CL.) BUG=62800 TEST=None Review URL: http://codereview.chromium.org/4823003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66260 0039d316-1c4b-4281-b951-d872f2087c98