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

Unified Diff: chrome/browser/ui/webui/settings/font_handler.cc

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/settings/font_handler.cc
diff --git a/chrome/browser/ui/webui/settings/font_handler.cc b/chrome/browser/ui/webui/settings/font_handler.cc
index 954f7f6633fec953e84f59e2901b6d5f9472684a..abd118e6a53d26a316f0695e4f09f2ddaee58f86 100644
--- a/chrome/browser/ui/webui/settings/font_handler.cc
+++ b/chrome/browser/ui/webui/settings/font_handler.cc
@@ -16,7 +16,6 @@
#include "chrome/browser/extensions/extension_tab_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_finder.h"
-#include "chrome/browser/ui/webui/options/font_settings_utils.h"
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "content/public/browser/font_list_async.h"
@@ -25,6 +24,10 @@
#include "extensions/browser/extension_system.h"
#include "extensions/common/extension_urls.h"
+#if defined(OS_MACOSX)
+#include "chrome/browser/ui/webui/settings_utils.h"
+#endif
+
namespace {
const char kAdvancedFontSettingsExtensionId[] =
@@ -38,8 +41,10 @@ FontHandler::FontHandler(content::WebUI* webui)
: extension_registry_observer_(this),
profile_(Profile::FromWebUI(webui)),
weak_ptr_factory_(this) {
+#if defined(OS_MACOSX)
// Perform validation for saved fonts.
- options::FontSettingsUtilities::ValidateSavedFonts(profile_->GetPrefs());
+ settings_utils::ValidateSavedFonts(profile_->GetPrefs());
+#endif
}
FontHandler::~FontHandler() {}

Powered by Google App Engine
This is Rietveld 408576698