summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/util
Commit message (Collapse)AuthorAgeFilesLines
* Got rid of DieFileDie in user_settings_unittest.cc.idana@chromium.org2009-11-062-32/+49
| | | | | | | | | | | | It turns out that the v10 -> v11 database migration code had a bug where the destination file (SyncData.sqlite3) wasn't copied into the correct directory. I fixed that problem too. BUG=21834 Review URL: http://codereview.chromium.org/366011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31272 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 31122 - Revert 31109 Avoid calling PlatformThread::Sleep(1) from ↵idana@chromium.org2009-11-061-1/+1
| | | | | | | | | | | | | | | | event_sys_unittests.cc BUG=21833 Review URL: http://codereview.chromium.org/360040 TBR=idana@chromium.org Review URL: http://codereview.chromium.org/361035 TBR=ben@chromium.org Review URL: http://codereview.chromium.org/377001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31194 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the high res timer, which is unused.nick@chromium.org2009-11-058-410/+0
| | | | | | Review URL: http://codereview.chromium.org/369006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31149 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the extensions activity monitor test for POSIX (c:\? Really?)nick@chromium.org2009-11-051-12/+17
| | | | | | | | R=akalin Review URL: http://codereview.chromium.org/360047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31138 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 31109 - Avoid calling PlatformThread::Sleep(1) from ↵ben@chromium.org2009-11-051-1/+1
| | | | | | | | | | | | | event_sys_unittests.cc BUG=21833 Review URL: http://codereview.chromium.org/360040 TBR=idana@chromium.org Review URL: http://codereview.chromium.org/361035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31122 0039d316-1c4b-4281-b951-d872f2087c98
* Avoid calling PlatformThread::Sleep(1) from event_sys_unittests.ccidana@chromium.org2009-11-051-1/+1
| | | | | | | | BUG=21833 Review URL: http://codereview.chromium.org/360040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31109 0039d316-1c4b-4281-b951-d872f2087c98
* Clean up the strings for sync code:munjal@chromium.org2009-11-0422-1059/+259
| | | | | | | | | | | | | | | | - Use FilePath for real file paths. - Use std::string for PathString on Windows as well TODO in a separate CL: - Get rid of PathString typedef completely and directly use std::string everywhere. - Use wchar_t in syncapi.h/.cc and get rid of sync_char16. TEST=Existing tests are sufficient since this CL does a lot of code refactoring. BUG=26342 Review URL: http://codereview.chromium.org/340055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30970 0039d316-1c4b-4281-b951-d872f2087c98
* Use the password_manager encryptor to encrypt the sync credentials under ↵davemoore@chromium.org2009-10-301-9/+43
| | | | | | | | | | | | | | Linux and OSX. BUG=none TEST=Enable bookmark sync, close and re-launch chrome, make sure there are no sync error message at the bottom of the NTP. Original patch by albertb@chromium.org Committed by davemoore@chromium.org Review URL: http://codereview.chromium.org/341012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30611 0039d316-1c4b-4281-b951-d872f2087c98
* Take 2 at browser_sync::ExtensionsActivityMonitor.tim@chromium.org2009-10-283-0/+412
| | | | | | | | | | Original: http://codereview.chromium.org/325001/show TEST=ExtensionsActivityMonitorTest Review URL: http://codereview.chromium.org/333041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30313 0039d316-1c4b-4281-b951-d872f2087c98
* linux: fix gcc 4.3 issues (for arm)piman@chromium.org2009-10-271-4/+6
| | | | | | | | These are mostly minor syntax / missing header fixes. Review URL: http://codereview.chromium.org/338037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30277 0039d316-1c4b-4281-b951-d872f2087c98
* Revert (4 of 4) 30153 - Introduce browser_sync::ExtensionsActivityMonitor to ↵tim@chromium.org2009-10-273-401/+0
| | | | | | | | | | | | | | | | | | collect extensions API usage for correlation to sync commit requests. Add ChromiumExtensionsActivity to sync.proto to allow passing this data to sync servers. BUG=25323 TEST=Added ExtensionsActivityMonitorTest. +Performing mutations on the bookmarks model via an extension should result in ChromiumExtensionsActivity for each such extension showing up in CommitMessages. Review URL: http://codereview.chromium.org/325001 TBR=tim@chromium.org Review URL: http://codereview.chromium.org/333040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30162 0039d316-1c4b-4281-b951-d872f2087c98
* Revert (2 of 4) 30156 - Add newline to end of file to fix compile. again :(tim@chromium.org2009-10-271-1/+1
| | | | | | | | | | | TBR=nick Review URL: http://codereview.chromium.org/333037 TBR=tim@chromium.org Review URL: http://codereview.chromium.org/337039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30160 0039d316-1c4b-4281-b951-d872f2087c98
* Revert (1 of 4) 30157 - Add newline to end of another file.tim@chromium.org2009-10-271-1/+1
| | | | | | | | | | | TBR=nick Review URL: http://codereview.chromium.org/333038 TBR=tim@chromium.org Review URL: http://codereview.chromium.org/328036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30159 0039d316-1c4b-4281-b951-d872f2087c98
* Add newline to end of another file.tim@chromium.org2009-10-271-1/+1
| | | | | | | | TBR=nick Review URL: http://codereview.chromium.org/333038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30157 0039d316-1c4b-4281-b951-d872f2087c98
* Add newline to end of file to fix compile. again :(tim@chromium.org2009-10-271-1/+1
| | | | | | | | TBR=nick Review URL: http://codereview.chromium.org/333037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30156 0039d316-1c4b-4281-b951-d872f2087c98
* Introduce browser_sync::ExtensionsActivityMonitor to collect extensions API ↵tim@chromium.org2009-10-273-0/+401
| | | | | | | | | | | | | | | usage for correlation to sync commit requests. Add ChromiumExtensionsActivity to sync.proto to allow passing this data to sync servers. BUG=25323 TEST=Added ExtensionsActivityMonitorTest. +Performing mutations on the bookmarks model via an extension should result in ChromiumExtensionsActivity for each such extension showing up in CommitMessages. Review URL: http://codereview.chromium.org/325001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30153 0039d316-1c4b-4281-b951-d872f2087c98
* Remove +x bit from files that shouldn't have it.evan@chromium.org2009-10-201-0/+0
| | | | | | Review URL: http://codereview.chromium.org/307007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29548 0039d316-1c4b-4281-b951-d872f2087c98
* Rename CHROME_PERSONALIZATION to BROWSER_SYNC.nick@chromium.org2009-10-1710-34/+23
| | | | | | | | | | Avoid #ifdef in general, favoring #if defined(). In one spot, use PlatformThread::Sleep instead of rolling our own. Review URL: http://codereview.chromium.org/267125 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29360 0039d316-1c4b-4281-b951-d872f2087c98
* Made sync code build and pass unit tests on OS X.akalin@chromium.org2009-10-163-9/+22
| | | | | | | | | | | | | | | | | | | | Major changes: - Moved sync_setup_{flow,wizard} to sync directory. - Made browser_with_test_window_test compile on non-Windows platform. - Moved localized contents font util functions to app/. BUG=23073 TEST=trybot Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29253 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29255 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29258 Review URL: http://codereview.chromium.org/279004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29263 0039d316-1c4b-4281-b951-d872f2087c98
* Reverted 29258.akalin@chromium.org2009-10-162-20/+7
| | | | | | TBR: nick@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29259 0039d316-1c4b-4281-b951-d872f2087c98
* Made sync code build and pass unit tests on OS X.akalin@chromium.org2009-10-162-7/+20
| | | | | | | | | | | | | | | | | | Major changes: - Moved sync_setup_{flow,wizard} to sync directory. - Made browser_with_test_window_test compile on non-Windows platform. - Moved localized contents font util functions to app/. BUG=23073 TEST=trybot Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29253 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29255 Review URL: http://codereview.chromium.org/279004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29258 0039d316-1c4b-4281-b951-d872f2087c98
* Reverted 29255.akalin@chromium.org2009-10-162-20/+7
| | | | | | TBR: nick@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29256 0039d316-1c4b-4281-b951-d872f2087c98
* Made sync code build and pass unit tests on OS X.akalin@chromium.org2009-10-162-7/+20
| | | | | | | | | | | | | | | | Major changes: - Moved sync_setup_{flow,wizard} to sync directory. - Made browser_with_test_window_test compile on non-Windows platform. - Moved localized contents font util functions to app/. BUG=23073 TEST=trybot Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=29253 Review URL: http://codereview.chromium.org/279004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29255 0039d316-1c4b-4281-b951-d872f2087c98
* Reverted 29253.akalin@chromium.org2009-10-162-20/+7
| | | | | | TBR: nick@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29254 0039d316-1c4b-4281-b951-d872f2087c98
* Made sync code build and pass unit tests on OS X.akalin@chromium.org2009-10-162-7/+20
| | | | | | | | | | | | | | Major changes: - Moved sync_setup_{flow,wizard} to sync directory. - Made browser_with_test_window_test compile on non-Windows platform. - Moved localized contents font util functions to app/. BUG=23073 TEST=trybot Review URL: http://codereview.chromium.org/279004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29253 0039d316-1c4b-4281-b951-d872f2087c98
* TBR: nick@chromium.orgakalin@chromium.org2009-10-162-20/+7
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29240 0039d316-1c4b-4281-b951-d872f2087c98
* Made sync code build and pass unit tests on OS X.akalin@chromium.org2009-10-162-7/+20
| | | | | | | | | | | | | | Major changes: - Moved sync_setup_{flow,wizard} to sync directory. - Made browser_with_test_window_test compile on non-Windows platform. - Moved localized contents font util functions to app/. BUG=23073 TEST=trybot Review URL: http://codereview.chromium.org/279004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29239 0039d316-1c4b-4281-b951-d872f2087c98
* Patched in 265058 (which was uploaded under akalin@gmail.com). Originalakalin@chromium.org2009-10-134-27/+45
| | | | | | | | | | | | | | | | | | | | description: Numerous fixes to get parts of Chrome Sync to compile on OS X. Fixes include: - Added missing definitions for some static const class variables. - Added some missing dependencies. - Marked some Windows-only dependencies as such. - Added stub files for some platform-specific classes. BUG=none TEST=Put through trybots. Review URL: http://codereview.chromium.org/266065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28900 0039d316-1c4b-4281-b951-d872f2087c98
* Remove pthreads from build and installer files.tim@chromium.org2009-10-104-330/+0
| | | | | | | | | | | We can yank it from deps/ following this. BUG=19895 TEST=sync_unit_tests Review URL: http://codereview.chromium.org/261042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28642 0039d316-1c4b-4281-b951-d872f2087c98
* Remove pthreads from event_sys_unittest.tim@chromium.org2009-10-091-48/+42
| | | | | | | | | BUG=19895 TEST=EventSys Review URL: http://codereview.chromium.org/273007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28587 0039d316-1c4b-4281-b951-d872f2087c98
* Move more ICU-dependent stuff from base into base/i18n. Some test stuff alsobrettw@chromium.org2009-10-091-1/+1
| | | | | | | | | | | | depended on this, so to make the DEPS work out, I made a new base/test directory where I moved the testing-related files into a new directory base/test. TEST=none BUG=none Review URL: http://codereview.chromium.org/266038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28569 0039d316-1c4b-4281-b951-d872f2087c98
* Part 1 of making sync work on Mac:munjal@chromium.org2009-10-084-3/+125
| | | | | | | | | | | | | | | | | | | | - Add high res timer class for mac (we might eventually replace all timer classes with Chrome ones) - Define POSIX for OS==mac where needed - Add new liens at the end of some files since otherwise they produce errors on Mac - Rearrange initializer list of constructors to match declaration order in header; these become warning as error. - Some chrome.gyp magic At this point the code compiles but doesn't link due to some missing code on Mac like SSL stuff. But I thought this was a good check point. Note that chrome.gyp magic might change in future. BUG=none TEST=none Review URL: http://codereview.chromium.org/255053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28414 0039d316-1c4b-4281-b951-d872f2087c98
* Update sync unit tests to build on linuxzork@chromium.org2009-10-072-20/+28
| | | | | | Review URL: http://codereview.chromium.org/218014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28349 0039d316-1c4b-4281-b951-d872f2087c98
* Sync: Replace pthread mutex with base::Lock in a few more places.timsteele@google.com2009-10-072-12/+9
| | | | | | | | | | | This leaves just ServerConnectionManager behind. BUG=19895 TEST=sync_unit_tests Review URL: http://codereview.chromium.org/251098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28278 0039d316-1c4b-4281-b951-d872f2087c98
* Sync: Remove pthreads from event_sys code. Remove asynch version of ↵timsteele@google.com2009-10-033-29/+39
| | | | | | | | | | | | | | | GaiaAuthenticator, as it is never used. This allowed replacing all lock/mutex code with current MessageLoop assertions. Some temp scaffolding in auth_watcher (e.g creating a message loop for the current pthread), which will be removed as part of my next trick. TEST=sync_unit_tests suite, sync_integration_tests suite BUG=19895 Review URL: http://codereview.chromium.org/251080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27956 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused pthread helpers. Looks like we don't use pthread_rw locks at all.chron@chromium.org2009-09-281-127/+0
| | | | | | | | | | This CL does not complete 19391, only removes the pthread dep. BUG=19391 Review URL: http://codereview.chromium.org/231005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27432 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compiling of sync on linux.zork@chromium.org2009-09-2214-59/+25
| | | | | | Review URL: http://codereview.chromium.org/211019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26835 0039d316-1c4b-4281-b951-d872f2087c98
* Build the sync unit tests:nick@chromium.org2009-09-161-2/+2
| | | | | | | | | | | | | | | | | | | - Remove old main(argc, argv) from syncable_unittest. - Since the old notifier target had only one unittest, merge it with the syncer tests. - Remove listener_unittest.cc entirely. - Don't compile natserver_main.cc, which has another main() - Use a test main from the test_support_unit library. This has the downside of pulling in a lot of deps we don't need, but it gives us a run_all_unittests.cc. - Fix a few compile errors in test code. TEST=unit tests pass BUG=none Review URL: http://codereview.chromium.org/205021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26358 0039d316-1c4b-4281-b951-d872f2087c98
* Build sync engine as part of the browser build.nick@chromium.org2009-09-1530-51/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | As before, syncapi is built as a dynamic library, and only on windows. The difference is that it's built from source, rather than being pulled in as a binary. Changes to sync engine code: * Use OS_WIN instead of OS_WINDOWS (requires build_config.h). * Rename platform-specific files to match the chrome convention. This allows them to be excluded by rules that already exist in chrome.gyp. The convention is either a /win/ directory, or an _win.cc at the end of the file. Other valid platforms are _mac, _linux, and _posix Changes to DEPS: * On Windows, pull in pthreads-win32. Changes to chrome.gyp: * Add new library targets for sync, notifier, sync_proto, and syncapi. Review URL: http://codereview.chromium.org/193103 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26295 0039d316-1c4b-4281-b951-d872f2087c98
* Made some style fixes in the remaining code under chrom/browser/sync and ↵idana@chromium.org2009-09-1419-75/+69
| | | | | | | | under chrome/test/sync. Review URL: http://codereview.chromium.org/203043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26126 0039d316-1c4b-4281-b951-d872f2087c98
* Fix compiler warnings in chrome\browser\sync.nick@chromium.org2009-09-112-4/+4
| | | | | | | | | | | | | Warnings are treated as errors in the Chrome build. Most of these are just forcing the implicit conversion to maintain the previous behavior. TEST=sync unit tests BUG=none Review URL: http://codereview.chromium.org/193085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26020 0039d316-1c4b-4281-b951-d872f2087c98
* Fix one more checkdeps path. Left this outnick@chromium.org2009-09-101-2/+0
| | | | | | | | | | | of the last change. TEST=checkdeps.py BUG=none Review URL: http://codereview.chromium.org/200076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25853 0039d316-1c4b-4281-b951-d872f2087c98
* Initial commit of sync engine code to browser/sync.nick@chromium.org2009-09-1046-0/+4794
The code is not built on any platform yet. That will arrive as a subsequent checkin. This is an implementation of the interface exposed earlier through syncapi.h. It is the client side of a sync protocol that lets users sync their browser data (currently, just bookmarks) with their Google Account. Table of contents: browser/sync/ protocol - The protocol definition, and other definitions necessary to connect to the service. syncable/ - defines a data model for syncable objects, and provides a sqlite-based backing store for this model. engine/ - includes the core sync logic, including commiting changes to the server, downloading changes from the server, resolving conflicts, other parts of the sync algorithm. engine/net - parts of the sync engine focused on the business of talking to the server. Some of this is binds a generic "server connection" interface to a concrete implementation provided by Chromium. notifier - the part of the syncer focused on the business of sending and receiving xmpp notifications. Notifications are used instead of polling to achieve very low latency change propagation. util - not necessarily sync specific utility code. Much of this is scaffolding which should either be replaced by, or merged with, the utility code in base/. BUG=none TEST=this code includes its own suite of unit tests. Review URL: http://codereview.chromium.org/194065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25850 0039d316-1c4b-4281-b951-d872f2087c98