Make sure the sync directory is deleted on sign-out, take 2.
commitaaf843d86e60821d4b5f31c137e33e259b16abf3
authormaxbogue <maxbogue@chromium.org>
Wed, 19 Nov 2014 19:09:27 +0000 (19 11:09 -0800)
committerCommit bot <commit-bot@chromium.org>
Wed, 19 Nov 2014 19:10:44 +0000 (19 19:10 +0000)
treede55bcab0d317769ab4a5531b8fb0eb74db361f1
parent8a00f49674a477fe796e9ebb8addfe7e008fadc3
Make sure the sync directory is deleted on sign-out, take 2.

Previously, if the user had turned off sync before signing out, the
directory would not be deleted correctly.

A similar CL was submitted in http://crrev.com/682173002 and
subsequently reverted in http://crrev.com/708153004 due to two
different crashes.

This CL simplifies things by doing everything on the sync thread, which
it turns out is still alive when we need it.

BUG=424593, 431421, 431354

Review URL: https://codereview.chromium.org/742453002

Cr-Commit-Position: refs/heads/master@{#304856}
chrome/browser/sync/profile_sync_service.cc
chrome/browser/sync/profile_sync_service.h
chrome/browser/sync/test/integration/single_client_directory_sync_test.cc [new file with mode: 0644]
chrome/chrome_tests.gypi