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

Unified Diff: ui/views_content_client/views_content_main_delegate.cc

Issue 2407733002: Load 200% resources in views_content_client. (Closed)
Patch Set: Require opt-in Created 4 years, 2 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
« no previous file with comments | « ui/views_content_client/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views_content_client/views_content_main_delegate.cc
diff --git a/ui/views_content_client/views_content_main_delegate.cc b/ui/views_content_client/views_content_main_delegate.cc
index b5951633237a9f7f6720ec451d3e5d47844c55cf..52abb639d7ce65c9c8e403e42005a31ccb8095ea 100644
--- a/ui/views_content_client/views_content_main_delegate.cc
+++ b/ui/views_content_client/views_content_main_delegate.cc
@@ -70,6 +70,13 @@ void ViewsContentMainDelegate::PreSandboxStartup() {
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
content_resources_pak_path.AppendASCII("content_resources.pak"),
ui::SCALE_FACTOR_100P);
+
+ if (ui::ResourceBundle::IsScaleFactorSupported(ui::SCALE_FACTOR_200P)) {
+ base::FilePath ui_test_resources_200 = ui_test_pak_path.DirName().Append(
+ FILE_PATH_LITERAL("ui_test_200_percent.pak"));
+ ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath(
+ ui_test_resources_200, ui::SCALE_FACTOR_200P);
+ }
}
content::ContentBrowserClient*
« no previous file with comments | « ui/views_content_client/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698