Index: rlz/lib/rlz_value_store.h |
diff --git a/rlz/lib/rlz_value_store.h b/rlz/lib/rlz_value_store.h |
index ab7279ac64a9400f6c8f8959d1cb9dcf2256a031..807f10000f6c05127066da0b6dab3ffd29d54844 100644 |
--- a/rlz/lib/rlz_value_store.h |
+++ b/rlz/lib/rlz_value_store.h |
@@ -95,7 +95,12 @@ class ScopedRlzValueStoreLock { |
RlzValueStore* GetStore(); |
private: |
+#if defined(OS_WIN) || defined(OS_MACOSX) |
+ // On ChromeOS, there is a singleton instance of RlzValueStore. |
scoped_ptr<RlzValueStore> store_; |
+#elif defined(OS_CHROMEOS) |
+ class RlzValueStoreChromeOS* store_; |
+#endif |
#if defined(OS_WIN) |
LibMutex lock_; |
#elif defined(OS_MACOSX) |
@@ -103,11 +108,15 @@ class ScopedRlzValueStoreLock { |
#endif |
}; |
-#if defined(OS_MACOSX) |
+#if defined(OS_MACOSX) || defined(OS_CHROMEOS) |
namespace testing { |
// Prefix |directory| to the path where the RLZ data file lives, for tests. |
void SetRlzStoreDirectory(const FilePath& directory); |
+} // namespace testing |
+#endif // defined(OS_MACOSX) || defined(OS_CHROMEOS) |
+#if defined(OS_MACOSX) |
+namespace testing { |
// Returns the path of the plist file used as data store. |
std::string RlzPlistFilenameStr(); |
} // namespace testing |