summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths.cc
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 02:42:45 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-23 02:42:45 +0000
commit2707fe32e964f0c22d87971d305f6e0fb5c3a158 (patch)
treeb9e5c69ceb1ed47d0055f7d9b1cad48e0238689c /chrome/common/chrome_paths.cc
parentbfdb3b89730a019b5837689660f565bc60243af2 (diff)
downloadchromium_src-2707fe32e964f0c22d87971d305f6e0fb5c3a158.zip
chromium_src-2707fe32e964f0c22d87971d305f6e0fb5c3a158.tar.gz
chromium_src-2707fe32e964f0c22d87971d305f6e0fb5c3a158.tar.bz2
Make chromeos build use shared object to load battery
functionality. Call into it and show new battery images Review URL: http://codereview.chromium.org/215025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r--chrome/common/chrome_paths.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index bb30e80..1a2209b 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -172,6 +172,14 @@ bool PathProvider(int key, FilePath* result) {
#endif
}
break;
+#if defined(OS_CHROMEOS)
+ case chrome::FILE_CHROMEOS_API:
+ if (!PathService::Get(base::DIR_MODULE, &cur))
+ return false;
+ cur = cur.Append(FILE_PATH_LITERAL("chromeos"));
+ cur = cur.Append(FILE_PATH_LITERAL("libchromeos-power.so"));
+ break;
+#endif
// The following are only valid in the development environment, and
// will fail if executed from an installed executable (because the
// generated path won't exist).