Chromium Code Reviews| 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 2c84e6bb026e8e56282944332d875d70f18c1ca2..d81d70861bc73b982a560bfd9bb6a2c6f4780057 100644 |
| --- a/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc |
| +++ b/components/dom_distiller/content/distiller_page_web_contents_browsertest.cc |
| @@ -62,11 +62,20 @@ class DistillerPageWebContentsTest : public ContentBrowserTest { |
| private: |
| void AddComponentsResources() { |
| +#if defined(OS_ANDROID) |
|
jbudorick
2015/04/10 13:34:32
ditto
Jaekyun Seok (inactive)
2015/04/13 01:36:02
Done.
|
| + base::FilePath pak_file; |
| + bool r = PathService::Get(base::DIR_ANDROID_APP_DATA, &pak_file); |
| + CHECK(r); |
| + pak_file = pak_file.Append(FILE_PATH_LITERAL("paks")); |
| + pak_file = |
| + pak_file.Append(FILE_PATH_LITERAL("components_tests_resources.pak")); |
| +#else |
| base::FilePath pak_file; |
| base::FilePath pak_dir; |
| PathService::Get(base::DIR_MODULE, &pak_dir); |
| pak_file = |
| pak_dir.Append(FILE_PATH_LITERAL("components_tests_resources.pak")); |
| +#endif // OS_ANDROID |
| ui::ResourceBundle::GetSharedInstance().AddDataPackFromPath( |
| pak_file, ui::SCALE_FACTOR_NONE); |
| } |