Index: content/browser/dwrite_font_cache_win.cc |
diff --git a/content/browser/dwrite_font_cache_win.cc b/content/browser/dwrite_font_cache_win.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b5e885eb9ed6e2659c76f5852c29cc4c12c9ad82 |
--- /dev/null |
+++ b/content/browser/dwrite_font_cache_win.cc |
@@ -0,0 +1,23 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "content/public/common/dwrite_font_cache_win.h" |
+ |
+#include "base/files/file_path.h" |
+#include "content/common/dwrite_font_platform_win.h" |
+#include "content/public/browser/browser_thread.h" |
+ |
+namespace content { |
+ |
+bool InitializeFontCache(const base::FilePath& path) { |
+ if (!LoadFontCache(path)) { |
+ content::BrowserThread::PostTask( |
+ content::BrowserThread::FILE, FROM_HERE, base::Bind( |
+ base::IgnoreResult(&content::BuildAndLoadFontCache), |
+ path)); |
+ } |
+ return true; |
+} |
+ |
+} // namespace content |