Index: components/dom_distiller/content/distiller_page_web_contents_browsertest.cc |
diff --git a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc |
index 79d557a896f5155fdf467a33d9496931fd72aa06..d1d2dffe5cc30891ff6949116ea327cdbf273ead 100644 |
--- a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc |
+++ b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc |
@@ -104,7 +104,12 @@ class DistillerPageWebContentsTest : public ContentBrowserTest { |
void AddComponentsResources() { |
base::FilePath pak_file; |
base::FilePath pak_dir; |
+#if defined(OS_ANDROID) |
+ CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &pak_dir)); |
+ pak_dir = pak_dir.Append(FILE_PATH_LITERAL("paks")); |
+#else |
PathService::Get(base::DIR_MODULE, &pak_dir); |
+#endif // OS_ANDROID |
pak_file = |
pak_dir.Append(FILE_PATH_LITERAL("components_tests_resources.pak")); |
ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath( |