Commit 91edf189 authored by tony@chromium.org's avatar tony@chromium.org

Remove the --locale_pak flag.

This only existed for pseudo locale testing of bidi.  I don't think anyone
is actively testing this config, so remove it.  If needed for manual testing,
we could probably come up with a way that doesn't involve a flag (e.g.,
special way to build the pak file).

BUG=None

Review URL: https://codereview.chromium.org/291913003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271526 0039d316-1c4b-4281-b951-d872f2087c98
parent 8bbe66ff
......@@ -258,15 +258,8 @@ std::string ResourceBundle::LoadLocaleResources(
DCHECK(!locale_resources_data_.get()) << "locale.pak already loaded";
std::string app_locale = l10n_util::GetApplicationLocale(pref_locale);
base::FilePath locale_file_path = GetOverriddenPakPath();
if (locale_file_path.empty()) {
CommandLine* command_line = CommandLine::ForCurrentProcess();
if (command_line->HasSwitch(switches::kLocalePak)) {
locale_file_path =
command_line->GetSwitchValuePath(switches::kLocalePak);
} else {
locale_file_path = GetLocaleFilePath(app_locale, true);
}
}
if (locale_file_path.empty())
locale_file_path = GetLocaleFilePath(app_locale, true);
if (locale_file_path.empty()) {
// It's possible that there is no locale.pak.
......
......@@ -39,10 +39,6 @@ const char kEnableTouchEditing[] = "enable-touch-editing";
// language[-country] where language is the 2 letter code from ISO-639.
const char kLang[] = "lang";
// Load the locale resources from the given path. When running on Mac/Unix the
// path should point to a locale.pak file.
const char kLocalePak[] = "locale_pak";
// Disable ui::MessageBox. This is useful when running as part of scripts that
// do not have a user interface.
const char kNoMessageBox[] = "no-message-box";
......
......@@ -25,7 +25,6 @@ UI_BASE_EXPORT extern const char kEnableTextInputFocusManager[];
UI_BASE_EXPORT extern const char kEnableTouchDragDrop[];
UI_BASE_EXPORT extern const char kEnableTouchEditing[];
UI_BASE_EXPORT extern const char kLang[];
UI_BASE_EXPORT extern const char kLocalePak[];
UI_BASE_EXPORT extern const char kNoMessageBox[];
} // namespace switches
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment