Index: chrome/browser/prefs/browser_prefs.cc |
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc |
index 362de41bb5a98238d8976e0b052d7ef896c39238..4c4430538453475c87cbec2f59897373f3ce5132 100644 |
--- a/chrome/browser/prefs/browser_prefs.cc |
+++ b/chrome/browser/prefs/browser_prefs.cc |
@@ -6,6 +6,7 @@ |
#include <string> |
+#include "base/files/file_util.h" |
#include "base/metrics/histogram_macros.h" |
#include "base/trace_event/trace_event.h" |
#include "build/build_config.h" |
@@ -97,6 +98,7 @@ |
#include "components/update_client/update_client.h" |
#include "components/variations/service/variations_service.h" |
#include "components/web_resource/promo_resource_service.h" |
+#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/render_process_host.h" |
#include "net/http/http_server_properties_manager.h" |
@@ -294,6 +296,18 @@ const char kCheckDefaultBrowser[] = "browser.check_default_browser"; |
const char kDesktopSearchRedirectionInfobarShownPref[] = |
"desktop_search_redirection_infobar_shown"; |
+void DeleteWebRTCIdentityStoreDBOnFileThread(base::FilePath profile_path) { |
+ base::DeleteFile(profile_path.Append("WebRTCIdentityStore"), false); |
+ base::DeleteFile(profile_path.Append("WebRTCIdentityStore-journal"), false); |
+} |
+ |
+void DeleteWebRTCIdentityStoreDB(Profile* profile) { |
+ content::BrowserThread::PostTask( |
battre
2016/07/01 10:43:45
I would suggest to use PostDelayedTask with a dela
hbos_chromium
2016/07/01 12:15:35
That makes sense! Done.
|
+ content::BrowserThread::IO, |
+ FROM_HERE, |
+ base::Bind(&DeleteWebRTCIdentityStoreDBOnFileThread, profile->GetPath())); |
+} |
+ |
} // namespace |
namespace chrome { |
@@ -709,6 +723,9 @@ void MigrateObsoleteProfilePrefs(Profile* profile) { |
// Added 5/2016. |
profile_prefs->ClearPref(kDesktopSearchRedirectionInfobarShownPref); |
+ |
+ // Added 7/2016. |
+ DeleteWebRTCIdentityStoreDB(profile); |
} |
} // namespace chrome |