| Index: chrome/browser/policy/policy_browsertest.cc
|
| diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
|
| index 89fb7f1b57546349dc4aaee36d75d4d2fc56b3cb..25a92c4a9bde1d61e8e2f6b9a4d710c58f477384 100644
|
| --- a/chrome/browser/policy/policy_browsertest.cc
|
| +++ b/chrome/browser/policy/policy_browsertest.cc
|
| @@ -162,10 +162,11 @@
|
| #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
|
| #include "chrome/browser/chromeos/accessibility/magnification_manager.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| -#include "chrome/browser/ui/ash/screenshot_taker.h"
|
| +#include "chrome/browser/ui/ash/chrome_screenshot_taker.h"
|
| #include "chromeos/audio/cras_audio_handler.h"
|
| #include "ui/chromeos/accessibility_types.h"
|
| #include "ui/keyboard/keyboard_util.h"
|
| +#include "ui/snapshot/screenshot_taker.h"
|
| #endif
|
|
|
| #if !defined(OS_MACOSX)
|
| @@ -652,7 +653,7 @@ class PolicyTest : public InProcessBrowserTest {
|
| }
|
|
|
| #if defined(OS_CHROMEOS)
|
| - class QuitMessageLoopAfterScreenshot : public ScreenshotTakerObserver {
|
| + class QuitMessageLoopAfterScreenshot : public ui::ScreenshotTakerObserver {
|
| public:
|
| virtual void OnScreenshotCompleted(
|
| ScreenshotTakerObserver::Result screenshot_result,
|
| @@ -669,12 +670,13 @@ class PolicyTest : public InProcessBrowserTest {
|
| void TestScreenshotFile(bool enabled) {
|
| // AddObserver is an ash-specific method, so just replace the screenshot
|
| // taker with one we've created here.
|
| - scoped_ptr<ScreenshotTaker> screenshot_taker(new ScreenshotTaker);
|
| + scoped_ptr<ChromeScreenshotTaker> chrome_screenshot_taker(
|
| + new ChromeScreenshotTaker);
|
| // ScreenshotTaker doesn't own this observer, so the observer's lifetime
|
| // is tied to the test instead.
|
| - screenshot_taker->AddObserver(&observer_);
|
| + chrome_screenshot_taker->screenshot_taker()->AddObserver(&observer_);
|
| ash::Shell::GetInstance()->accelerator_controller()->SetScreenshotDelegate(
|
| - screenshot_taker.Pass());
|
| + chrome_screenshot_taker.Pass());
|
|
|
| SetScreenshotPolicy(enabled);
|
| ash::Shell::GetInstance()->accelerator_controller()->PerformAction(
|
|
|