summaryrefslogtreecommitdiffstats
path: root/ui/test
diff options
context:
space:
mode:
authorsail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-18 07:30:15 +0000
committersail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-18 07:30:15 +0000
commit5351a49d9762480ab0cd9ce27b8d3cbcd6bbee06 (patch)
treec9483adbe25aa4d92c72e9a3a637d8e3c049ac52 /ui/test
parent295429f88b94666a2239088cdda1cb277d56dafb (diff)
downloadchromium_src-5351a49d9762480ab0cd9ce27b8d3cbcd6bbee06.zip
chromium_src-5351a49d9762480ab0cd9ce27b8d3cbcd6bbee06.tar.gz
chromium_src-5351a49d9762480ab0cd9ce27b8d3cbcd6bbee06.tar.bz2
Metro/HiDPI: Move 1x icons into separate pak file
Currently all 1x art files are repacked into chrome.pak files. This is a problem on Windows where we want to choose which pak file to load based on metro and DPI scale. As a first step this CL does the following: - add a new enable_hidpi build flag. This allows us to test HiDPI mode on Windows Chrome. - stop packing theme_resources_standard.pak and ui_resources_standard.pak into chrome.pak - update the Mac and Windows installer code to package the extra pak files. Note, I'll be updating the Linux installer script in a separate CL. I'm still looking into the ChromeOS situation. BUG=114311 TEST=Ran on Windows, and Mac and Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132517 Review URL: http://codereview.chromium.org/10024050 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132760 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/test')
-rw-r--r--ui/test/test_suite.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/test/test_suite.cc b/ui/test/test_suite.cc
index bd4e325..024543e 100644
--- a/ui/test/test_suite.cc
+++ b/ui/test/test_suite.cc
@@ -46,13 +46,16 @@ void UITestSuite::Initialize() {
PathService::Get(base::DIR_MODULE, &pak_dir);
pak_dir = pak_dir.AppendASCII("ui_unittests_strings");
PathService::Override(ui::DIR_LOCALES, pak_dir);
- PathService::Override(ui::FILE_RESOURCES_PAK,
- pak_dir.AppendASCII("ui_resources.pak"));
#endif // defined(OS_MACOSX)
// Force unittests to run using en-US so if we test against string
// output, it'll pass regardless of the system language.
ui::ResourceBundle::InitSharedInstanceWithLocale("en-US");
+
+#if !defined(OS_MACOSX) && defined(OS_POSIX)
+ ui::ResourceBundle::GetSharedInstance().AddDataPack(
+ pak_dir.AppendASCII("ui_resources.pak"));
+#endif
}
void UITestSuite::Shutdown() {