Remove browsing data when the user tries to delete a profile.
commit2c1c378279e7b164acea9fb1ad2069c0e14d4526
authormlerman <mlerman@chromium.org>
Thu, 23 Apr 2015 18:37:43 +0000 (23 11:37 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 18:38:26 +0000 (23 18:38 +0000)
tree07b055dd8c9f097e5862b9f2822958624647d30a
parent5cf3c2e114b5d28a7997703ad6fea052a7a9f705
Remove browsing data when the user tries to delete a profile.
Also, nuke the directory immediately for unloaded, deleting profiles.

BUG=476306
TEST=Have 2 profiles. Load Chrome and delete the un-loaded profile. That profile should be immediately removed from the User Data Directory.
TEST=Open Chrome. Browse to some sites. Examine the History file in the profile's directory - those sites will show up. Delete the Profile. The history file will still be present, but the sites are no longer present.

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

Cr-Commit-Position: refs/heads/master@{#326590}
chrome/browser/profiles/profile_manager.cc
chrome/browser/profiles/profile_window_browsertest.cc
chrome/browser/profiles/profiles_state.cc
chrome/browser/profiles/profiles_state.h
chrome/browser/ui/browser.cc
chrome/browser/ui/webui/options/browser_options_handler.cc
chrome/browser/ui/webui/options/sync_setup_handler.cc
chrome/browser/ui/webui/signin/user_manager_screen_handler.cc