| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/public/common/dwrite_font_cache_win.h" | |
| 6 | |
| 7 #include "base/files/file_path.h" | |
| 8 #include "content/common/dwrite_font_platform_win.h" | |
| 9 #include "content/public/browser/browser_thread.h" | |
| 10 | |
| 11 namespace content { | |
| 12 | |
| 13 bool InitializeFontCache(const base::FilePath& path) { | |
| 14 if (!LoadFontCache(path)) { | |
| 15 content::BrowserThread::PostTask( | |
| 16 content::BrowserThread::FILE, FROM_HERE, base::Bind( | |
| 17 base::IgnoreResult(&content::BuildAndLoadFontCache), | |
| 18 path)); | |
| 19 } | |
| 20 return true; | |
| 21 } | |
| 22 | |
| 23 } // namespace content | |
| OLD | NEW |