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

Unified Diff: chromecast/common/cast_paths.cc

Issue 443833002: Adds ChromecastConfig to manage cast_shell's PrefService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@build-breakpages
Patch Set: 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
« no previous file with comments | « chromecast/common/cast_paths.h ('k') | chromecast/common/chromecast_config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/common/cast_paths.cc
diff --git a/chromecast/common/cast_paths.cc b/chromecast/common/cast_paths.cc
index b3a77166d96bb6ce5acfa3f41fdecf87ad7f9ecf..53e14229bceb2f32b958abcb08686b1413fed1cf 100644
--- a/chromecast/common/cast_paths.cc
+++ b/chromecast/common/cast_paths.cc
@@ -26,6 +26,17 @@ bool PathProvider(int key, base::FilePath* result) {
#endif
return true;
}
+ case PATH_CAST_CONFIG: {
jam 2014/08/07 05:46:59 nit: the convention in paths files is to name enum
gunsch 2014/08/08 00:10:40 Done.
+ base::FilePath data_dir;
+#if defined(OS_ANDROID)
+ CHECK(PathService::Get(base::DIR_ANDROID_APP_DATA, &data_dir);
+ *result = data_dir.Append(".eureka.conf");
+#else
+ CHECK(PathService::Get(DIR_CAST_HOME, &data_dir));
+ *result = data_dir.Append("cast_shell.conf");
+#endif // defined(OS_ANDROID)
+ return true;
+ }
}
return false;
}
« no previous file with comments | « chromecast/common/cast_paths.h ('k') | chromecast/common/chromecast_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698