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

Unified Diff: ui/gfx/hud_font.cc

Issue 922293006: Revert of Fixes for two different HUD issues related to win32k lockdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 10 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 | « ui/gfx/hud_font.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/hud_font.cc
diff --git a/ui/gfx/hud_font.cc b/ui/gfx/hud_font.cc
deleted file mode 100644
index b64845b8d247512fe6895af09155f53e17da12bb..0000000000000000000000000000000000000000
--- a/ui/gfx/hud_font.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2015 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 "ui/gfx/hud_font.h"
-
-#include "base/lazy_instance.h"
-#include "third_party/skia/include/core/SkTypeface.h"
-
-namespace ui {
-
-namespace {
-base::LazyInstance<skia::RefPtr<SkTypeface>> g_hud_typeface;
-} // namespace
-
-void SetHudTypeface(skia::RefPtr<SkTypeface> typeface) {
- g_hud_typeface.Get() = typeface;
-}
-
-skia::RefPtr<SkTypeface> GetHudTypeface() {
- if (!g_hud_typeface.Get()) {
- // This will be set pre-sandbox on Windows. On other platforms, just make
- // something here.
- SetHudTypeface(skia::AdoptRef(
- SkTypeface::CreateFromName("monospace", SkTypeface::kBold)));
- }
- return g_hud_typeface.Get();
-}
-
-} // namespace ui
« no previous file with comments | « ui/gfx/hud_font.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698