summaryrefslogtreecommitdiffstats
path: root/content/shell/shell_content_client.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/shell/shell_content_client.cc')
-rw-r--r--content/shell/shell_content_client.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/content/shell/shell_content_client.cc b/content/shell/shell_content_client.cc
index c004593..e3c80d8 100644
--- a/content/shell/shell_content_client.cc
+++ b/content/shell/shell_content_client.cc
@@ -52,11 +52,16 @@ string16 ShellContentClient::GetLocalizedString(int message_id) const {
return string16();
}
-base::StringPiece ShellContentClient::GetDataResource(
+base::StringPiece ShellContentClient::GetDataResource(int resource_id) const {
+ return ResourceBundle::GetSharedInstance().GetRawDataResource(resource_id);
+}
+
+base::StringPiece ShellContentClient::GetImageResource(
int resource_id,
- ui::ScaleFactor scale_factor) const {
- return ResourceBundle::GetSharedInstance().GetRawDataResource(
- resource_id, scale_factor);
+ 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);
}
#if defined(OS_WIN)