summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-28 02:30:04 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-28 02:30:04 +0000
commit70f9df11715b7903b1fe3ecf8b3e4a0909bd80cf (patch)
tree4078be6ec7d9c222978fd27fd6db348dfcc3cb60 /chrome/browser
parente643e57c80fa41616d4ed5d9b13381538dec0573 (diff)
downloadchromium_src-70f9df11715b7903b1fe3ecf8b3e4a0909bd80cf.zip
chromium_src-70f9df11715b7903b1fe3ecf8b3e4a0909bd80cf.tar.gz
chromium_src-70f9df11715b7903b1fe3ecf8b3e4a0909bd80cf.tar.bz2
content: Modfiy ResourceBundle and content_shell to run with alternative pak files.
BUG=111326 R=jam TBR=sky,tony,ajwong,ananta Review URL: http://codereview.chromium.org/9232060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119566 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/chrome_browser_main.cc2
-rw-r--r--chrome/browser/chrome_browser_main_extra_parts_gtk.cc4
-rw-r--r--chrome/browser/chrome_browser_main_mac.mm2
-rw-r--r--chrome/browser/diagnostics/diagnostics_main.cc2
4 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index b6559ef..28a69ce 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1184,7 +1184,7 @@ int ChromeBrowserMainParts::PreCreateThreadsImpl() {
// On a POSIX OS other than ChromeOS, the parameter that is passed to the
// method InitSharedInstance is ignored.
const std::string loaded_locale =
- ResourceBundle::InitSharedInstance(locale);
+ ResourceBundle::InitSharedInstanceWithLocale(locale);
if (loaded_locale.empty() &&
!parsed_command_line().HasSwitch(switches::kNoErrorDialogs)) {
ShowMissingLocaleMessageBox();
diff --git a/chrome/browser/chrome_browser_main_extra_parts_gtk.cc b/chrome/browser/chrome_browser_main_extra_parts_gtk.cc
index 406d3ec..f663ac6 100644
--- a/chrome/browser/chrome_browser_main_extra_parts_gtk.cc
+++ b/chrome/browser/chrome_browser_main_extra_parts_gtk.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -34,7 +34,7 @@ void ChromeBrowserMainExtraPartsGtk::DetectRunningAsRoot() {
// Get just enough of our resource machinery up so we can extract the
// locale appropriate string. Note that the GTK implementation ignores the
// passed in parameter and checks the LANG environment variables instead.
- ResourceBundle::InitSharedInstance("");
+ ResourceBundle::InitSharedInstanceWithLocale("");
std::string message = l10n_util::GetStringFUTF8(
IDS_REFUSE_TO_RUN_AS_ROOT,
diff --git a/chrome/browser/chrome_browser_main_mac.mm b/chrome/browser/chrome_browser_main_mac.mm
index 6743e864..b1fa31f 100644
--- a/chrome/browser/chrome_browser_main_mac.mm
+++ b/chrome/browser/chrome_browser_main_mac.mm
@@ -86,7 +86,7 @@ void ChromeBrowserMainPartsMac::PreMainMessageLoopStart() {
// TODO(markusheintz): Read preference pref::kApplicationLocale in order
// to enforce the application locale.
const std::string loaded_locale =
- ResourceBundle::InitSharedInstance(std::string());
+ ResourceBundle::InitSharedInstanceWithLocale(std::string());
CHECK(!loaded_locale.empty()) << "Default locale could not be found";
FilePath resources_pack_path;
diff --git a/chrome/browser/diagnostics/diagnostics_main.cc b/chrome/browser/diagnostics/diagnostics_main.cc
index ab4ddab..edc1c55 100644
--- a/chrome/browser/diagnostics/diagnostics_main.cc
+++ b/chrome/browser/diagnostics/diagnostics_main.cc
@@ -278,7 +278,7 @@ class TestController : public DiagnosticsModel::Observer {
writer_->WriteResult(false, L"Diagnostics start", L"ICU failure");
return;
}
- ResourceBundle::InitSharedInstance("");
+ ResourceBundle::InitSharedInstanceWithLocale("");
int count = model->GetTestAvailableCount();
writer_->WriteInfoText(base::StringPrintf(
L"%d available test(s)\n\n", count));