diff --git a/brightray/common/content_client.cc b/brightray/common/content_client.cc index 9b38e9304f74..3867ed6fe3fb 100644 --- a/brightray/common/content_client.cc +++ b/brightray/common/content_client.cc @@ -46,4 +46,9 @@ gfx::Image& ContentClient::GetNativeImageNamed(int resource_id) const { resource_id); } +base::RefCountedStaticMemory* ContentClient::GetDataResourceBytes( + int resource_id) const { + return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id); +} + } // namespace brightray diff --git a/brightray/common/content_client.h b/brightray/common/content_client.h index e5433cd6a2c7..5d22e55ab9d9 100644 --- a/brightray/common/content_client.h +++ b/brightray/common/content_client.h @@ -22,6 +22,8 @@ class ContentClient : public content::ContentClient { base::StringPiece GetDataResource(int resource_id, ui::ScaleFactor) const override; gfx::Image& GetNativeImageNamed(int resource_id) const override; + base::RefCountedStaticMemory* GetDataResourceBytes( + int resource_id) const override; DISALLOW_COPY_AND_ASSIGN(ContentClient); };