summaryrefslogtreecommitdiffstats
path: root/chrome/browser/favicon/chrome_fallback_icon_client.cc
blob: 5bff09eb333f81849550b5b7180ef3f1d1309abc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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 "chrome/browser/favicon/chrome_fallback_icon_client.h"

#include "build/build_config.h"
#include "grit/platform_locale_settings.h"
#include "ui/base/l10n/l10n_util.h"

ChromeFallbackIconClient::ChromeFallbackIconClient() {
#if defined(OS_CHROMEOS)
  font_list_.push_back("Noto Sans");
#elif defined(OS_IOS)
  font_list_.push_back("Helvetica Neue");
#else
  font_list_.push_back(l10n_util::GetStringUTF8(IDS_SANS_SERIF_FONT_FAMILY));
#endif
}

ChromeFallbackIconClient::~ChromeFallbackIconClient() {
}

const std::vector<std::string>& ChromeFallbackIconClient::GetFontNameList()
    const {
  return font_list_;
}