summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorofri@google.com <ofri@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-24 14:53:50 +0000
committerofri@google.com <ofri@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-24 14:53:50 +0000
commitae5dda7261973def9810e6b4e72346d8d96cf7ca (patch)
treea8348d039e02d7203fe0b14030c0c720e14d7879 /base
parent1f8110b02d73ffdd890f085a42fb6f155bc3073f (diff)
downloadchromium_src-ae5dda7261973def9810e6b4e72346d8d96cf7ca.zip
chromium_src-ae5dda7261973def9810e6b4e72346d8d96cf7ca.tar.gz
chromium_src-ae5dda7261973def9810e6b4e72346d8d96cf7ca.tar.bz2
Adding support for loading custom locale resources using a command line flag.
Loading pseudo-locale will now be done by passing --lang=myLocale --locale_res_path=path/to/pseudo-locale.pak This patch doesn't work on Windows. BUG=73052 TEST=NONE Review URL: http://codereview.chromium.org/7033022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86426 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/base_switches.cc4
-rw-r--r--base/base_switches.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/base/base_switches.cc b/base/base_switches.cc
index 78f55a7..82202f5 100644
--- a/base/base_switches.cc
+++ b/base/base_switches.cc
@@ -21,6 +21,10 @@ const char kEnableDCHECK[] = "enable-dcheck";
// Generates full memory crash dump.
const char kFullMemoryCrashReport[] = "full-memory-crash-report";
+// 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";
+
// Suppresses all error dialogs when present.
const char kNoErrorDialogs[] = "noerrdialogs";
diff --git a/base/base_switches.h b/base/base_switches.h
index 56b6bc9..c261b4a 100644
--- a/base/base_switches.h
+++ b/base/base_switches.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -14,6 +14,7 @@ extern const char kDebugOnStart[];
extern const char kDisableBreakpad[];
extern const char kEnableDCHECK[];
extern const char kFullMemoryCrashReport[];
+extern const char kLocalePak[];
extern const char kNoErrorDialogs[];
extern const char kNoMessageBox[];
extern const char kTestChildProcess[];