| Index: chrome/browser/dom_ui/bug_report_ui.cc
|
| diff --git a/chrome/browser/dom_ui/bug_report_ui.cc b/chrome/browser/dom_ui/bug_report_ui.cc
|
| index ffbf29ea8ea2568565c1de083a145d3e04548ade..c69a2e22d35cd47902bfe39c70aa2ad05428a6af 100644
|
| --- a/chrome/browser/dom_ui/bug_report_ui.cc
|
| +++ b/chrome/browser/dom_ui/bug_report_ui.cc
|
| @@ -25,6 +25,7 @@
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| +#include "chrome/browser/ui/window_snapshot/window_snapshot.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/jstemplate_builder.h"
|
| #include "chrome/common/url_constants.h"
|
| @@ -36,18 +37,6 @@
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
|
|
| -#if defined(USE_X11)
|
| -#include "ui/base/x/x11_util.h"
|
| -#elif defined(OS_MACOSX)
|
| -#include "base/mac/mac_util.h"
|
| -#elif defined(OS_WIN)
|
| -#include "app/win/win_util.h"
|
| -#endif
|
| -
|
| -#if defined(TOOLKIT_VIEWS)
|
| -#include "views/window/window.h"
|
| -#endif
|
| -
|
| #if defined(OS_CHROMEOS)
|
| #include "base/file_util.h"
|
| #include "base/path_service.h"
|
| @@ -148,7 +137,8 @@ void RefreshLastScreenshot(Browser* browser) {
|
| else
|
| last_screenshot_png = new std::vector<unsigned char>;
|
|
|
| - screen_size = browser->window()->GrabWindowSnapshot(last_screenshot_png);
|
| + gfx::NativeWindow native_window = browser->window()->GetNativeHandle();
|
| + screen_size = browser::GrabWindowSnapshot(native_window, last_screenshot_png);
|
| }
|
|
|
| void ShowHtmlBugReportView(Browser* browser) {
|
|
|