Chromium Code Reviews| Index: chrome/test/base/ui_test_utils_win.cc |
| diff --git a/chrome/test/base/ui_test_utils_win.cc b/chrome/test/base/ui_test_utils_win.cc |
| index da8dbed97e4255c21d0792828712a4371e808c63..c5ac508749f0c87d9e30dc4142fcc42b46225e36 100644 |
| --- a/chrome/test/base/ui_test_utils_win.cc |
| +++ b/chrome/test/base/ui_test_utils_win.cc |
| @@ -124,9 +124,9 @@ bool SaveScreenSnapshotToDirectory(const FilePath& directory, |
| RECT& rect = monitor_info.rcMonitor; |
| std::vector<unsigned char> png_data; |
| - if (browser::GrabWindowSnapshot(NULL, &png_data, |
| - gfx::Rect(rect.right - rect.left, |
| - rect.bottom - rect.top)) && |
| + if (browser::GrabWindowSnapshotIfPermitted(NULL, &png_data, |
| + gfx::Rect(rect.right - rect.left, |
| + rect.bottom - rect.top)) && |
|
Mattias Nissler (ping if slow)
2012/07/13 15:23:42
align parameters
qfel
2012/07/16 09:11:12
Ah! It's line no. 34's fault.
Done.
|
| png_data.size() <= INT_MAX) { |
| int bytes = static_cast<int>(png_data.size()); |
| int written = file_util::WriteFile( |