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

Unified Diff: chrome/browser/ui/webui/options/font_settings_utils.h

Issue 2927273002: Move code for old, deprecated Options UI to only ChromeOS (Closed)
Patch Set: check_gn_headers Created 3 years, 6 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
Index: chrome/browser/ui/webui/options/font_settings_utils.h
diff --git a/chrome/browser/ui/webui/options/font_settings_utils.h b/chrome/browser/ui/webui/options/font_settings_utils.h
deleted file mode 100644
index 35801bb471fb158c311edfbb3e1eed4f7336d993..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/options/font_settings_utils.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_
-
-#include <string>
-
-#include "base/macros.h"
-
-class PrefService;
-
-namespace options {
-
-// Chrome advanced options utility methods.
-class FontSettingsUtilities {
- public:
- static void ValidateSavedFonts(PrefService* prefs);
-
- // When |font_name_or_list| starts with ",", it is a list of font names
- // separated by "," and this function returns the first available font name.
- // Otherwise returns |font_name_or_list| as is.
- // Unlike gfx::FontList, this function picks one font, and character-level
- // fallback is handled in CSS.
- static std::string ResolveFontList(const std::string& font_name_or_list);
-
- // Returns the localized name of a font so that settings can find it within
- // the list of system fonts. On Windows, the list of system fonts has names
- // only for the system locale, but the pref value may be in the English name.
- // For example, "MS Gothic" becomes "MS ゴシック" on localized Windows.
- static std::string MaybeGetLocalizedFontName(
- const std::string& font_name_or_list);
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(FontSettingsUtilities);
-};
-
-} // namespace options
-
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_FONT_SETTINGS_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698