Index: chrome/test/pyautolib/pyauto.py |
diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py |
index ff7523289d9f0ea45c60558247dedae565fcb035..8606811224a7cd70892fefa0f632beac1c50b67f 100755 |
--- a/chrome/test/pyautolib/pyauto.py |
+++ b/chrome/test/pyautolib/pyauto.py |
@@ -448,6 +448,16 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
PyUITest.RunSuperuserActionOnChromeOS('RemoveAllCryptohomeVaults') |
@staticmethod |
+ def DisableLocalStateAutoClearingOnChromeOS(): |
+ """Disable clearing of the local state on session manager startup.""" |
+ PyUITest.RunSuperuserActionOnChromeOS('DisableLocalStateAutoClearing') |
+ |
+ @staticmethod |
+ def EnableLocalStateAutoClearingOnChromeOS(): |
+ """Enable clearing of the local state on session manager startup.""" |
+ PyUITest.RunSuperuserActionOnChromeOS('EnableLocalStateAutoClearing') |
+ |
+ @staticmethod |
def _IsInodeNew(path, old_inode): |
"""Determine whether an inode has changed. POSIX only. |
@@ -1292,7 +1302,7 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
an instance of prefs_info.PrefsInfo |
""" |
return prefs_info.PrefsInfo( |
- self._SendJSONRequest(0, |
+ self._SendJSONRequest(-1, |
Nirnimesh
2012/04/12 01:46:24
I'm surprised that it worked with 0! Thanks for fi
bartfab (slow)
2012/04/12 12:49:31
It seemed to work with 0 when you are logged in. W
|
json.dumps({'command': 'GetLocalStatePrefsInfo'}), |
self.action_max_timeout_ms())) |