Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2620)

Unified Diff: chromecast/common/cast_paths.cc

Issue 469023004: Chromecast: moves cast_shell.pak output to assets/ directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/common/cast_paths.cc
diff --git a/chromecast/common/cast_paths.cc b/chromecast/common/cast_paths.cc
index c6ce0b62bfd740dc3415e2d56c9178655c5ede83..ec485c7e57537f92eff02238fafc1c0649c90192 100644
--- a/chromecast/common/cast_paths.cc
+++ b/chromecast/common/cast_paths.cc
@@ -4,6 +4,7 @@
#include "chromecast/common/cast_paths.h"
+#include "base/base_paths.h"
#include "base/file_util.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
@@ -37,6 +38,17 @@ bool PathProvider(int key, base::FilePath* result) {
#endif // defined(OS_ANDROID)
return true;
}
+ case FILE_CAST_PAK: {
+ base::FilePath base_dir;
+#if defined(OS_ANDROID)
+ CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &base_dir));
+ *result = base_dir.Append("paks/cast_shell.pak");
+#else
+ CHECK(PathService::Get(base::DIR_MODULE, &base_dir));
+ *result = base_dir.Append("assets/cast_shell.pak");
+#endif // defined(OS_ANDROID)
+ return true;
+ }
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698