diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 23:09:36 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 23:09:36 +0000 |
commit | 2186fec4df1dde813a12011eb1ea650ce8470ea2 (patch) | |
tree | 96ebaec4e2e3bf246f0730b7093d153011fbbd7b /chrome/common/chrome_switches.cc | |
parent | b17b3c8b37c0acd4528a338583f851a5a10063b0 (diff) | |
download | chromium_src-2186fec4df1dde813a12011eb1ea650ce8470ea2.zip chromium_src-2186fec4df1dde813a12011eb1ea650ce8470ea2.tar.gz chromium_src-2186fec4df1dde813a12011eb1ea650ce8470ea2.tar.bz2 |
Second attempt at the new syncer thread impl, now with less crashes!
Previous one at http://codereview.chromium.org/214033.
I had local edits that resulted in initializing the CommandLine for syncapi,
but didn't have them as part of the patch, so this was causing a crash whenever
SyncerThreadFactory::Create was called. The only diff here is the call to
CommandLine::Init in syncapi.cc. This effectively means you can't change the
syncer thread impl on linux (we init an empty command line there), but this is
OK. Once we link statically we won't need to do this.
TEST=ProfileSyncServiceTest, SyncerThreadTest, SyncerThreadWithSyncerTest
Review URL: http://codereview.chromium.org/250001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27281 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_switches.cc')
-rw-r--r-- | chrome/common/chrome_switches.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 075a350..14aea58 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -378,6 +378,16 @@ const wchar_t kEnableFastback[] = L"enable-fastback"; // Enable syncing bookmarks to a Google Account. const wchar_t kEnableSync[] = L"enable-sync"; +// Use the SyncerThread implementation that matches up with the old pthread +// impl semantics, but using Chrome synchronization primitives. The only +// difference between this and the default is that we now have no timeout on +// Stop(). Should only use if you experience problems with the default. +const wchar_t kSyncerThreadTimedStop[] = L"syncer-thread-timed-stop"; + +// Use the old pthreads SyncerThread implementation. +// Should only use if you experience problems with the default. +const wchar_t kSyncerThreadPthreads[] = L"syncer-thread-pthreads"; + // Enable support for SDCH filtering (dictionary based expansion of content). // Optional argument is *the* only domain name that will have SDCH suppport. // Default is "-enable-sdch" to advertise SDCH on all domains. |