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

Unified Diff: chrome/common/extensions/extension_l10n_util.cc

Issue 19547009: Move ".crx"/".pem" constants and extension_filenames constants into extensions/common/constants.cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months 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/extension_l10n_util.cc
diff --git a/chrome/common/extensions/extension_l10n_util.cc b/chrome/common/extensions/extension_l10n_util.cc
index ac4b4baa75fed2e5f6c347a1e2acc247ce9f6687..b3ef3834a6711d6802e30f317f9aed9dea3ed7dd 100644
--- a/chrome/common/extensions/extension_l10n_util.cc
+++ b/chrome/common/extensions/extension_l10n_util.cc
@@ -212,7 +212,7 @@ bool AddLocale(const std::set<std::string>& chrome_locales,
}
// Check if messages file is actually present (but don't check content).
if (base::PathExists(
- locale_folder.Append(extensions::kMessagesFilename))) {
+ locale_folder.Append(extensions::filenames::kMessagesFilename))) {
valid_locales->insert(locale_name);
} else {
*error = base::StringPrintf("Catalog file is missing for locale %s.",
@@ -295,7 +295,7 @@ static base::DictionaryValue* LoadMessageFile(
std::string* error) {
std::string extension_locale = locale;
base::FilePath file = locale_path.AppendASCII(extension_locale)
- .Append(extensions::kMessagesFilename);
+ .Append(extensions::filenames::kMessagesFilename);
JSONFileValueSerializer messages_serializer(file);
base::Value *dictionary = messages_serializer.Deserialize(NULL, error);
if (!dictionary && error->empty()) {

Powered by Google App Engine
This is Rietveld 408576698