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

Unified Diff: content/shell/shell_content_client.cc

Issue 10412004: Revert "Revert 137734 - Select theme resources from ResourceBundle at requested scale factor." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with master Created 8 years, 7 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 | « content/shell/shell_content_client.h ('k') | content/shell/shell_devtools_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_content_client.cc
diff --git a/content/shell/shell_content_client.cc b/content/shell/shell_content_client.cc
index e3c80d849cf85de50df9b5520977704d9c7327b0..c00459359f7fc59e165d885185dca3448d53c495 100644
--- a/content/shell/shell_content_client.cc
+++ b/content/shell/shell_content_client.cc
@@ -52,16 +52,11 @@ string16 ShellContentClient::GetLocalizedString(int message_id) const {
return string16();
}
-base::StringPiece ShellContentClient::GetDataResource(int resource_id) const {
- return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id);
-}
-
-base::StringPiece ShellContentClient::GetImageResource(
+base::StringPiece ShellContentClient::GetDataResource(
int resource_id,
- float scale_factor) const {
- // TODO(flackr): Pass scale_factor to ResourceBundle to get best matching
- // image resource for the given scale factor.
- return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id);
+ ui::ScaleFactor scale_factor) const {
+ return ResourceBundle::GetSharedInstance().GetRawDataResource(
+ resource_id, scale_factor);
}
#if defined(OS_WIN)
« no previous file with comments | « content/shell/shell_content_client.h ('k') | content/shell/shell_devtools_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698