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 5c90b547c0d0f624634d92d24ea2e18d39c57f09..dd5d4707af13b01643ee1d3b2160aab42a332e40 100644 |
--- a/chrome/browser/chrome_browser_main_win.cc |
+++ b/chrome/browser/chrome_browser_main_win.cc |
@@ -57,7 +57,6 @@ |
#include "content/public/browser/utility_process_host.h" |
#include "content/public/browser/utility_process_host_client.h" |
#include "content/public/common/content_switches.h" |
-#include "content/public/common/dwrite_font_platform_win.h" |
#include "content/public/common/main_function_params.h" |
#include "ui/base/cursor/cursor_loader_win.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -340,35 +339,6 @@ void ChromeBrowserMainPartsWin::ShowMissingLocaleMessageBox() { |
void ChromeBrowserMainPartsWin::PostProfileInit() { |
ChromeBrowserMainParts::PostProfileInit(); |
- |
- // DirectWrite support is mainly available Windows 7 and up. |
- if (gfx::win::ShouldUseDirectWrite()) { |
- base::FilePath path( |
- profile()->GetPath().AppendASCII(content::kFontCacheSharedSectionName)); |
- // This function will create a read only section if cache file exists |
- // otherwise it will spawn utility process to build cache file, which will |
- // be used during next browser start/postprofileinit. |
- if (!content::LoadFontCache(path)) { |
- // We delay building of font cache until first startup page loads. |
- // During first renderer start there are lot of things happening |
- // simultaneously some of them are: |
- // - Renderer is going through all font files on the system to create |
- // a font collection. |
- // - Renderer loading up startup URL, accessing HTML/JS File cache, |
- // net activity etc. |
- // - Extension initialization. |
- // We delay building of cache mainly to avoid parallel font file |
- // loading along with Renderer. Some systems have significant number of |
- // font files which takes long time to process. |
- // Related information is at http://crbug.com/436195. |
- const int kBuildFontCacheDelaySec = 30; |
- content::BrowserThread::PostDelayedTask( |
- content::BrowserThread::IO, |
- FROM_HERE, |
- base::Bind(ExecuteFontCacheBuildTask, path), |
- base::TimeDelta::FromSeconds(kBuildFontCacheDelaySec)); |
- } |
- } |
} |
void ChromeBrowserMainPartsWin::PostBrowserStart() { |