Lines Matching refs:prefs_
103 prefs_.ResetTranslationDeniedCount(original_language_code);
104 prefs_.IncrementTranslationAcceptedCount(original_language_code);
124 prefs_.ResetTranslationAcceptedCount(original_language_code);
125 prefs_.IncrementTranslationDeniedCount(original_language_code);
139 return prefs_.IsLanguageBlacklisted(GetOriginalLanguageCode());
144 if (prefs_.IsLanguageBlacklisted(original_lang)) {
145 prefs_.RemoveLanguageFromBlacklist(original_lang);
147 prefs_.BlacklistLanguage(original_lang);
154 return !host.empty() && prefs_.IsSiteBlacklisted(host);
162 if (prefs_.IsSiteBlacklisted(host)) {
163 prefs_.RemoveSiteFromBlacklist(host);
165 prefs_.BlacklistSite(host);
171 return prefs_.IsLanguagePairWhitelisted(GetOriginalLanguageCode(),
178 if (prefs_.IsLanguagePairWhitelisted(original_lang, target_lang))
179 prefs_.RemoveLanguagePairFromWhitelist(original_lang, target_lang);
181 prefs_.WhitelistLanguagePair(original_lang, target_lang);
187 DCHECK(!prefs_.IsLanguagePairWhitelisted(original_lang, target_lang));
188 prefs_.WhitelistLanguagePair(original_lang, target_lang);
194 DCHECK(!prefs_.IsLanguageBlacklisted(original_lang));
195 prefs_.BlacklistLanguage(original_lang);
261 (prefs_.GetTranslationDeniedCount(GetOriginalLanguageCode()) >= 3);
267 (prefs_.GetTranslationAcceptedCount(GetOriginalLanguageCode()) >= 3);
321 prefs_(tab_contents_->profile()->GetPrefs()) {