summaryrefslogtreecommitdiffstats
path: root/content/test/test_content_client.cc
diff options
context:
space:
mode:
authorcjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-10 19:18:04 +0000
committercjhopman@chromium.org <cjhopman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-10 19:18:04 +0000
commit6c26d9cf2d0ee13c4ab67040923c953c50e0d41b (patch)
tree0920a14cb3544ea100a21ebcb65b97b673472c33 /content/test/test_content_client.cc
parent81f2dba7d7e3af616501d65920599dad4bb948e7 (diff)
downloadchromium_src-6c26d9cf2d0ee13c4ab67040923c953c50e0d41b.zip
chromium_src-6c26d9cf2d0ee13c4ab67040923c953c50e0d41b.tar.gz
chromium_src-6c26d9cf2d0ee13c4ab67040923c953c50e0d41b.tar.bz2
Add methods to add DataPack from open files
On Android, renderer sandboxing prevents us from opening files and so ResourceBundle is initialized with file descriptors passed in at process creation. This change adds methods to DataPack and ResourceBundle to support loading/initializing from PlatformFile in addition to the current FilePath. Also, the current methods are renamed so that the naming is consistent between these two files. BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/10686005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@145927 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/test_content_client.cc')
-rw-r--r--content/test/test_content_client.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/test/test_content_client.cc b/content/test/test_content_client.cc
index 2e2b3d8..dc14eb1 100644
--- a/content/test/test_content_client.cc
+++ b/content/test/test_content_client.cc
@@ -16,7 +16,7 @@ TestContentClient::TestContentClient()
PathService::Get(base::DIR_MODULE, &content_resources_pack_path);
content_resources_pack_path = content_resources_pack_path.Append(
FILE_PATH_LITERAL("content_resources.pak"));
- data_pack_.Load(content_resources_pack_path);
+ data_pack_.LoadFromPath(content_resources_pack_path);
}
TestContentClient::~TestContentClient() {