Chromium Code Reviews| Index: chrome/test/pyautolib/pyauto.py |
| diff --git a/chrome/test/pyautolib/pyauto.py b/chrome/test/pyautolib/pyauto.py |
| index ec3be84359210e4015a48fc641aff497e4c2b120..964395cd4dae630c901bfee3f378965c847935ab 100644 |
| --- a/chrome/test/pyautolib/pyauto.py |
| +++ b/chrome/test/pyautolib/pyauto.py |
| @@ -3607,6 +3607,18 @@ class PyUITest(pyautolib.PyUITestBase, unittest.TestCase): |
| } |
| return self._GetResultFromJSONRequest(cmd_dict, windex=-1) |
| + def CaptureProfilePhoto(self): |
| + """Captures user profile photo. |
|
Nirnimesh
2011/07/30 10:32:31
Append: on chromeos.
frankf
2011/08/01 19:31:09
Done.
|
| + |
| + This is done by driving the UI. The profile photo is saved in a file |
|
Nirnimesh
2011/07/30 10:32:31
which UI. be specific.
Prefs profile photo capture
frankf
2011/08/01 19:31:09
Done.
|
| + and its path is set in the local state. |
|
Nirnimesh
2011/07/30 10:32:31
append: preferences
frankf
2011/08/01 19:31:09
Done.
|
| + |
|
Nirnimesh
2011/07/30 10:32:31
Should the user be logged in? mention it so
frankf
2011/08/01 19:31:09
Done.
|
| + Raises: |
| + pyauto_errors.JSONInterfaceError if the automation call returns an error. |
| + """ |
| + cmd_dict = { 'command': 'CaptureProfilePhoto' } |
| + return self._GetResultFromJSONRequest(cmd_dict) |
| + |
| ## ChromeOS section -- end |