Index: chrome/test/base/ui_test_utils_win.cc |
=================================================================== |
--- chrome/test/base/ui_test_utils_win.cc (revision 149605) |
+++ chrome/test/base/ui_test_utils_win.cc (working copy) |
@@ -14,13 +14,12 @@ |
#include "chrome/browser/ui/browser.h" |
#include "chrome/browser/ui/browser_window.h" |
#include "chrome/browser/ui/views/frame/browser_view.h" |
+#include "chrome/browser/ui/window_snapshot/window_snapshot.h" |
#include "chrome/common/chrome_paths.h" |
#include "ui/base/win/foreground_helper.h" |
#include "ui/ui_controls/ui_controls.h" |
#include "ui/views/focus/focus_manager.h" |
-#include "ui/window_snapshot/window_snapshot.h" |
- |
namespace ui_test_utils { |
namespace { |
@@ -125,9 +124,9 @@ |
RECT& rect = monitor_info.rcMonitor; |
std::vector<unsigned char> png_data; |
- if (ui::GrabWindowSnapshot(NULL, &png_data, |
- gfx::Rect(rect.right - rect.left, |
- rect.bottom - rect.top)) && |
+ if (chrome::GrabWindowSnapshot(NULL, &png_data, |
+ gfx::Rect(rect.right - rect.left, |
+ rect.bottom - rect.top)) && |
png_data.size() <= INT_MAX) { |
int bytes = static_cast<int>(png_data.size()); |
int written = file_util::WriteFile( |