summaryrefslogtreecommitdiffstats
path: root/rlz/lib/rlz_value_store.h
diff options
context:
space:
mode:
authorivankr@chromium.org <ivankr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-29 14:00:12 +0000
committerivankr@chromium.org <ivankr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-29 14:00:12 +0000
commit95b42e2745a2380a16112a059bd0e842d81f0c0a (patch)
tree8715285e587b94807bcc70cf135d99bdbec662fb /rlz/lib/rlz_value_store.h
parent1b14a45ac508a066cc3c060dd37327c3a13a6fda (diff)
downloadchromium_src-95b42e2745a2380a16112a059bd0e842d81f0c0a.zip
chromium_src-95b42e2745a2380a16112a059bd0e842d81f0c0a.tar.gz
chromium_src-95b42e2745a2380a16112a059bd0e842d81f0c0a.tar.bz2
[cros] RlzValueStore made protected by a cross-process lock and not persisted over browser lifetime (like on Mac).
*) Moved RecursiveCrossProcessLock out of .mm file to a common _posix file. *) Added static method to ImportantFileWriter that does blocking write on the current thread. *) Dedicated RLZ thread gone, replaced back with shutdown-blocking worker pool. BUG=157348,62328 Review URL: https://chromiumcodereview.appspot.com/11308196 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170179 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'rlz/lib/rlz_value_store.h')
-rw-r--r--rlz/lib/rlz_value_store.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/rlz/lib/rlz_value_store.h b/rlz/lib/rlz_value_store.h
index 807f100..46e87df 100644
--- a/rlz/lib/rlz_value_store.h
+++ b/rlz/lib/rlz_value_store.h
@@ -95,12 +95,7 @@ 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)
@@ -108,20 +103,15 @@ class ScopedRlzValueStoreLock {
#endif
};
-#if defined(OS_MACOSX) || defined(OS_CHROMEOS)
+#if defined(OS_POSIX)
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();
+// Returns the path of the file used as data store.
+std::string RlzStoreFilenameStr();
} // namespace testing
-#endif // defined(OS_MACOSX)
-
+#endif // defined(OS_POSIX)
} // namespace rlz_lib