Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4335)

Unified Diff: chrome/browser/chrome_browser_main_win.cc

Issue 1881043003: Delete the font cache file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main_win.cc
diff --git a/chrome/browser/chrome_browser_main_win.cc b/chrome/browser/chrome_browser_main_win.cc
index 3a996d66a8f5d9c7d8b9e074a54edd37fef51573..05463bd554b2ba5c7b2dc46045a7c4d2d8c66fbc 100644
--- a/chrome/browser/chrome_browser_main_win.cc
+++ b/chrome/browser/chrome_browser_main_win.cc
@@ -312,6 +312,15 @@ void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() {
void ChromeBrowserMainPartsWin::PostProfileInit() {
ChromeBrowserMainParts::PostProfileInit();
+
+ // TODO(kulshin): remove this cleanup code in 2017. http://crbug.com/603718
+ // Attempt to delete the font cache and ignore any errors.
+ base::FilePath path(
+ profile()->GetPath().AppendASCII("ChromeDWriteFontCache"));
+ content::BrowserThread::PostAfterStartupTask(
+ FROM_HERE, content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::FILE),
+ base::Bind(base::IgnoreResult(&base::DeleteFile), path, false));
}
void ChromeBrowserMainPartsWin::PostBrowserStart() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698