| Index: chrome/browser/extensions/api/font_settings/font_settings_api.cc
|
| diff --git a/chrome/browser/extensions/api/font_settings/font_settings_api.cc b/chrome/browser/extensions/api/font_settings/font_settings_api.cc
|
| index 802c625ecec1de8c73ba2f2e2970946af1c27d54..9568b371901aa7be730d9d837c0618b222ff3d0b 100644
|
| --- a/chrome/browser/extensions/api/font_settings/font_settings_api.cc
|
| +++ b/chrome/browser/extensions/api/font_settings/font_settings_api.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/bind.h"
|
| #include "base/command_line.h"
|
| #include "base/json/json_writer.h"
|
| +#include "base/lazy_instance.h"
|
| #include "base/string_util.h"
|
| #include "base/stringprintf.h"
|
| #include "base/values.h"
|
| @@ -217,6 +218,14 @@ FontSettingsAPI::FontSettingsAPI(Profile* profile)
|
| FontSettingsAPI::~FontSettingsAPI() {
|
| }
|
|
|
| +static base::LazyInstance<ProfileKeyedAPIFactory<FontSettingsAPI> >
|
| +g_factory = LAZY_INSTANCE_INITIALIZER;
|
| +
|
| +// static
|
| +ProfileKeyedAPIFactory<FontSettingsAPI>* FontSettingsAPI::GetFactoryInstance() {
|
| + return &g_factory.Get();
|
| +}
|
| +
|
| bool ClearFontFunction::RunImpl() {
|
| if (profile_->IsOffTheRecord()) {
|
| error_ = kSetFromIncognitoError;
|
|
|