summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prefs/pref_service_syncable.cc
Commit message (Collapse)AuthorAgeFilesLines
* Rename managed user prefs to supervised user prefs.bauerb@chromium.org2013-08-291-1/+1
| | | | | | | | | | | Also, update comment for the PrefValueStore constructor. TBR=phajdan.jr@chromium.org BUG=280674 Review URL: https://chromiumcodereview.appspot.com/23610004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220385 0039d316-1c4b-4281-b951-d872f2087c98
* Add support for a managed user pref store to PrefService.bauerb@chromium.org2013-08-291-0/+1
| | | | | | | | | TBR=phajdan.jr@chromium.org BUG=280674 Review URL: https://chromiumcodereview.appspot.com/23592013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220274 0039d316-1c4b-4281-b951-d872f2087c98
* Add histograms to track synced pref changes.rockot@chromium.org2013-08-101-0/+14
| | | | | | | | | | | | | | | | | | | | Certain prefs will now elicit stat tracking whenever they are changed locally and pushed to sync, or when changes from sync server are pulled down to update the local pref store. New histogram names take the form: Settings.$prefname.Changed{FromSync,Local} The logged value is the new pref value imposed by the change. BUG=265627 Review URL: https://chromiumcodereview.appspot.com/21580002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216813 0039d316-1c4b-4281-b951-d872f2087c98
* Call scoped_refptr<T>::get() rather than relying on implicit "operator T*"rsleevi@chromium.org2013-06-111-1/+1
| | | | | | | | | | | | | | | | | | | This upates calls to bound temporary objects to also use get(). While it has the same semantic equivalence to the existing code, this generally represents a dangerous pattern - indeed, part of the whole motivation for this change is to make this anti-pattern very visible to authors. This change simply updates all of the call sites, to allow the "operator T*" to be removed and preventing new instances. The existing instances will then be reviewed for "suspicious" changes and updated to use/pass scoped_refptr<T> rather than T*, as appropriate. BUG=110610 TBR=darin Review URL: https://codereview.chromium.org/15984016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205560 0039d316-1c4b-4281-b951-d872f2087c98
* Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*"rsleevi@chromium.org2013-06-021-9/+8
| | | | | | | | | | | Linux fixes, Part 3 of N BUG=110610 TBR=darin Review URL: https://chromiumcodereview.appspot.com/16296002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203626 0039d316-1c4b-4281-b951-d872f2087c98
* cros: Exclude user has synced app pins from default pin trial.xiyuan@chromium.org2013-05-261-1/+5
| | | | | | | | | | | | - Add helper methods to PrefServiceSyncable to figure out whether a pref is pulled from sync; - Use the helper to exclude users that has synced app pins from trial; BUG=234415 Review URL: https://chromiumcodereview.appspot.com/15911003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202332 0039d316-1c4b-4281-b951-d872f2087c98
* components: Move PrefRegistrySyncable into user_prefs namespace.tfarina@chromium.org2013-05-061-11/+12
| | | | | | | | | | BUG=180785 R=joi@chromium.org TBR=darin@chromium.org Review URL: https://chromiumcodereview.appspot.com/14622003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198384 0039d316-1c4b-4281-b951-d872f2087c98
* sync: Implementation of Priority Preferences.albertb@chromium.org2013-03-271-11/+41
| | | | | | | | | | | | | Priority preferences are similar to normal preferences but are never encrypted and are synced ahead of other datatypes. Because they're never encrypted, on first sync, they can be synced immediately after login, before the user is prompted for a passphrase. Expected uses of priority preferences include hardware setting (eg. trackpad speed, scroll direction, etc.) as well as settings that could be 2-way synced with existing Google Account settings (eg. language). BUG=168648 Review URL: https://chromiumcodereview.appspot.com/12033093 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191047 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce //components/user_prefs.joi@chromium.org2013-03-061-1/+1
| | | | | | | | | | | | | | | | | | The user_prefs component provides: a) The UserPrefs class, used to map PrefService objects to BrowserContext. This addresses a TODO to get rid of PrefServiceFromBrowserContext from base/prefs/pref_service.h, where clearly a mention of a content class did not belong. b) A place for PrefRegistrySyncable to live, where it can be used by components that need to register prefs. We also use (b) in this change to eliminate Autofill's dependency on chrome/browser/prefs. Work is ongoing to move Autofill to //components/autofill. TBR=ben@chromium.org BUG=155525,140037 Review URL: https://chromiumcodereview.appspot.com/12340111 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186301 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-241-1/+1
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of the ability to unregister preferences.joi@chromium.org2013-02-211-7/+0
| | | | | | | | | | | | | | | | | This was being used only in a couple of places that were clearing or migrating old prefs, and as far as I understand, it is not necessary, especially if we hide the names of those old prefs from users outside of the class that clears them. Also, do registrations of the prefs being migrated at up-front registration time rather than in the migration functions. TBR=ivankr@chromium.org BUG=155525 Review URL: https://codereview.chromium.org/12330008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183816 0039d316-1c4b-4281-b951-d872f2087c98
* Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/.joi@chromium.org2013-02-111-3/+3
| | | | | | | | | | | | | | This is a mostly-automated change, using ./tools/git/move_source_file.py to move files and fix up include guards and #includes from other files. Manual edits were limited to fixing up .gypi files and adding BASE_PREFS_EXPORT where needed. TBR=ben@chromium.org BUG=155525 Review URL: https://codereview.chromium.org/12211105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181707 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce PrefRegistrySyncable, simplifying PrefServiceSyncable.joi@chromium.org2013-02-101-203/+50
| | | | | | | | | | | Minimize usage of PrefServiceSyncable. It is mostly an implementation detail of ProfileImpl and the sync integration. TBR=ben@chromium.org BUG=155525 Review URL: https://codereview.chromium.org/12079097 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181648 0039d316-1c4b-4281-b951-d872f2087c98
* Merge branch 'master' into file_path_browserbrettw@chromium.org2013-02-101-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | version control markers Merge branch 'master' into file_path_browser remove version control Fix typo Merge branch 'master' into file_path_browser Conflicts: chrome/browser/intents/native_services_browsertest.cc chrome/browser/ui/intents/native_file_picker_service.cc Merge branch 'master' into file_path_browser Conflicts: chrome/browser/chromeos/drive/drive_file_system.cc chrome/browser/chromeos/drive/drive_file_system.h chrome/browser/chromeos/drive/drive_file_system_interface.h chrome/browser/chromeos/drive/drive_file_system_unittest.cc chrome/browser/chromeos/drive/file_system/drive_operations.cc chrome/browser/chromeos/login/wallpaper_manager.cc chrome/browser/chromeos/login/wallpaper_manager.h chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc chrome/browser/extensions/api/sync_file_system/extension_sync_event_observer.cc chrome/browser/google_apis/gdata_wapi_operations.cc chrome/browser/google_apis/gdata_wapi_operations.h chrome/browser/google_apis/gdata_wapi_operations_unittest.cc chrome/browser/profiles/off_the_record_profile_impl.cc chrome/browser/profiles/off_the_record_profile_impl.h chrome/browser/profiles/profile_impl.cc chrome/browser/profiles/profile_impl.h chrome/browser/profiles/profile_impl_io_data.cc chrome/browser/profiles/profile_impl_io_data.h chrome/browser/sync_file_system/drive_file_sync_client_unittest.cc chrome/browser/ui/webui/options/manage_profile_handler.cc Long lines long lines some long lines. long lines long lines Beginning of lines. Rename FilePath -> base::FilePath in chrome/browser git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181638 0039d316-1c4b-4281-b951-d872f2087c98
* Rename FilePath to base::FilePath and use new location of ↵brettw@chromium.org2013-02-081-1/+1
| | | | | | | | string_number_conversions in some chrome subdirectories. Review URL: https://codereview.chromium.org/12218065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181564 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple.joi@chromium.org2013-02-061-6/+25
| | | | | | | | | | | | This is a step towards removing registration methods from PrefService and simplifying its class hierarchy. TBR=ben@chromium.org BUG=155525 Review URL: https://chromiumcodereview.appspot.com/11741003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180873 0039d316-1c4b-4281-b951-d872f2087c98
* Fix a heapcheck issue in pref_service_syncablepenghuang@chromium.org2013-02-041-1/+1
| | | | | | | | BUG=90271,155530,171571 Review URL: https://chromiumcodereview.appspot.com/12095089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180530 0039d316-1c4b-4281-b951-d872f2087c98
* prefs: Rename PrefServiceObserver to PrefServiceSyncableObserver.tfarina@chromium.org2013-01-141-4/+6
| | | | | | | | | | | | Note: This was a TODO for joi@. BUG=155525 R=joi@chromium.org TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/11778109 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176616 0039d316-1c4b-4281-b951-d872f2087c98
* Remove PrefValueStore's dependency on PrefModelAssociator.joi@chromium.org2012-12-271-1/+4
| | | | | | | | | | COLLABORATOR=kaiwang@chromium.org BUG=155525 Review URL: https://chromiumcodereview.appspot.com/11636018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174680 0039d316-1c4b-4281-b951-d872f2087c98
* Split PrefService into PrefService, PrefServiceSimple and PrefServiceSyncable.joi@chromium.org2012-12-221-0/+273
The first two (PrefServiceSimple is a subclass of PrefService) know nothing about sync or any Chrome or content concepts. The third (PrefServiceSyncable, a separate subclass of PrefService) knows about sync and requires users to choose whether each individual preference is syncable or not when it is registered. BrowserProcess::local_state() is a PrefServiceSimple after this change, and Profile::prefs() is a PrefServiceSyncable. COLLABORATOR=kaiwang@chromium.org TBR=ben@chromium.org BUG=155525 Review URL: https://chromiumcodereview.appspot.com/11570009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174531 0039d316-1c4b-4281-b951-d872f2087c98