Index: components/dom_distiller/content/distillable_page_utils_browsertest.cc |
diff --git a/components/dom_distiller/content/distillable_page_utils_browsertest.cc b/components/dom_distiller/content/distillable_page_utils_browsertest.cc |
index 952598289d34d1dc9164562cb744047132b0121c..c320eedb4a15bfd679028fd793733f4b344bb38d 100644 |
--- a/components/dom_distiller/content/distillable_page_utils_browsertest.cc |
+++ b/components/dom_distiller/content/distillable_page_utils_browsertest.cc |
@@ -50,7 +50,12 @@ class DomDistillerDistillablePageUtilsTest : public content::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( |