| Index: chrome/browser/prefs/pref_service_mock_factory.h
|
| diff --git a/chrome/browser/ui/webui/options/font_settings_utils_win.cc b/chrome/browser/prefs/pref_service_mock_factory.h
|
| similarity index 34%
|
| copy from chrome/browser/ui/webui/options/font_settings_utils_win.cc
|
| copy to chrome/browser/prefs/pref_service_mock_factory.h
|
| index c96c27f968daa1acb61d71413a819cf9e252f286..974d459a29999043221620a4c4ef3f11092f011a 100644
|
| --- a/chrome/browser/ui/webui/options/font_settings_utils_win.cc
|
| +++ b/chrome/browser/prefs/pref_service_mock_factory.h
|
| @@ -2,13 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/ui/webui/options/font_settings_utils.h"
|
| +#ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_
|
| +#define CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_
|
|
|
| -namespace options {
|
| +#include "chrome/browser/prefs/pref_service_syncable_factory.h"
|
|
|
| -// static
|
| -void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) {
|
| - // Nothing to do for Windows.
|
| -}
|
| +// A helper that allows convenient building of custom PrefServices in tests.
|
| +class PrefServiceMockFactory : public PrefServiceSyncableFactory {
|
| + public:
|
| + PrefServiceMockFactory();
|
| + virtual ~PrefServiceMockFactory();
|
|
|
| -} // namespace options
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(PrefServiceMockFactory);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_
|
|
|