Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4073)

Unified Diff: chrome/common/extensions/api/spellcheck/spellcheck_handler.cc

Issue 93793010: Update uses of UTF conversions in chrome/common to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/spellcheck/spellcheck_handler.cc
diff --git a/chrome/common/extensions/api/spellcheck/spellcheck_handler.cc b/chrome/common/extensions/api/spellcheck/spellcheck_handler.cc
index 1ca1479ca247dda21a1cae778dd16f8a2bbcd79a..53d4acff304d8abea798013ed0f7e30cb534d449 100644
--- a/chrome/common/extensions/api/spellcheck/spellcheck_handler.cc
+++ b/chrome/common/extensions/api/spellcheck/spellcheck_handler.cc
@@ -28,7 +28,7 @@ bool SpellcheckHandler::Parse(Extension* extension, base::string16* error) {
const base::DictionaryValue* spellcheck_value = NULL;
if (!extension->manifest()->GetDictionary(keys::kSpellcheck,
&spellcheck_value)) {
- *error = ASCIIToUTF16(errors::kInvalidSpellcheck);
+ *error = base::ASCIIToUTF16(errors::kInvalidSpellcheck);
return false;
}
scoped_ptr<SpellcheckDictionaryInfo> spellcheck_info(
@@ -36,25 +36,25 @@ bool SpellcheckHandler::Parse(Extension* extension, base::string16* error) {
if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryLanguage) ||
!spellcheck_value->GetString(keys::kSpellcheckDictionaryLanguage,
&spellcheck_info->language)) {
- *error = ASCIIToUTF16(errors::kInvalidSpellcheckDictionaryLanguage);
+ *error = base::ASCIIToUTF16(errors::kInvalidSpellcheckDictionaryLanguage);
return false;
}
if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryLocale) ||
!spellcheck_value->GetString(keys::kSpellcheckDictionaryLocale,
&spellcheck_info->locale)) {
- *error = ASCIIToUTF16(errors::kInvalidSpellcheckDictionaryLocale);
+ *error = base::ASCIIToUTF16(errors::kInvalidSpellcheckDictionaryLocale);
return false;
}
if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryFormat) ||
!spellcheck_value->GetString(keys::kSpellcheckDictionaryFormat,
&spellcheck_info->format)) {
- *error = ASCIIToUTF16(errors::kInvalidSpellcheckDictionaryFormat);
+ *error = base::ASCIIToUTF16(errors::kInvalidSpellcheckDictionaryFormat);
return false;
}
if (!spellcheck_value->HasKey(keys::kSpellcheckDictionaryPath) ||
!spellcheck_value->GetString(keys::kSpellcheckDictionaryPath,
&spellcheck_info->path)) {
- *error = ASCIIToUTF16(errors::kInvalidSpellcheckDictionaryPath);
+ *error = base::ASCIIToUTF16(errors::kInvalidSpellcheckDictionaryPath);
return false;
}
extension->SetManifestData(keys::kSpellcheck, spellcheck_info.release());

Powered by Google App Engine
This is Rietveld 408576698