return g_factory.Pointer();
}
-bool FontSettingsClearFontFunction::RunImpl() {
+bool FontSettingsClearFontFunction::RunSync() {
if (GetProfile()->IsOffTheRecord()) {
error_ = kSetFromIncognitoError;
return false;
return true;
}
-bool FontSettingsGetFontFunction::RunImpl() {
+bool FontSettingsGetFontFunction::RunSync() {
scoped_ptr<fonts::GetFont::Params> params(
fonts::GetFont::Params::Create(*args_));
EXTENSION_FUNCTION_VALIDATE(params.get());
return true;
}
-bool FontSettingsSetFontFunction::RunImpl() {
+bool FontSettingsSetFontFunction::RunSync() {
if (GetProfile()->IsOffTheRecord()) {
error_ = kSetFromIncognitoError;
return false;
return true;
}
-bool FontSettingsGetFontListFunction::RunImpl() {
+bool FontSettingsGetFontListFunction::RunAsync() {
content::GetFontListAsync(
Bind(&FontSettingsGetFontListFunction::FontListHasLoaded, this));
return true;
return true;
}
-bool ClearFontPrefExtensionFunction::RunImpl() {
+bool ClearFontPrefExtensionFunction::RunSync() {
if (GetProfile()->IsOffTheRecord()) {
error_ = kSetFromIncognitoError;
return false;
return true;
}
-bool GetFontPrefExtensionFunction::RunImpl() {
+bool GetFontPrefExtensionFunction::RunSync() {
PrefService* prefs = GetProfile()->GetPrefs();
const PrefService::Preference* pref = prefs->FindPreference(GetPrefName());
EXTENSION_FUNCTION_VALIDATE(pref);
return true;
}
-bool SetFontPrefExtensionFunction::RunImpl() {
+bool SetFontPrefExtensionFunction::RunSync() {
if (GetProfile()->IsOffTheRecord()) {
error_ = kSetFromIncognitoError;
return false;