Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5503)

Unified Diff: chrome/browser/signin/signin_error_notifier_ash_unittest.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/signin_error_notifier_ash_unittest.cc
diff --git a/chrome/browser/signin/signin_error_notifier_ash_unittest.cc b/chrome/browser/signin/signin_error_notifier_ash_unittest.cc
index e28f6ec97ae76b679511ece27a58ce55a733f657..8fe2d437f8bea7e0610fade33a6dccef42523fbe 100644
--- a/chrome/browser/signin/signin_error_notifier_ash_unittest.cc
+++ b/chrome/browser/signin/signin_error_notifier_ash_unittest.cc
@@ -31,7 +31,6 @@
#include "chrome/browser/ui/ash/ash_util.h"
#include "ui/aura/test/test_screen.h"
#include "ui/gfx/screen.h"
-#include "ui/gfx/screen_type_delegate.h"
#endif
namespace ash {
@@ -47,20 +46,6 @@ static const std::string kNotificationId =
"chrome://settings/signin/testuser@test.com";
}
-#if defined(OS_WIN)
-class ScreenTypeDelegateDesktop : public gfx::ScreenTypeDelegate {
- public:
- ScreenTypeDelegateDesktop() {}
- gfx::ScreenType GetScreenTypeForNativeView(gfx::NativeView view) override {
- return chrome::IsNativeViewInAsh(view) ?
- gfx::SCREEN_TYPE_ALTERNATE :
- gfx::SCREEN_TYPE_NATIVE;
- }
- private:
- DISALLOW_COPY_AND_ASSIGN(ScreenTypeDelegateDesktop);
-};
-#endif
-
class SigninErrorNotifierTest : public AshTestBase {
public:
void SetUp() override {
@@ -81,8 +66,7 @@ class SigninErrorNotifierTest : public AshTestBase {
// Set up screen for Windows.
#if defined(OS_WIN)
test_screen_.reset(aura::TestScreen::Create(gfx::Size()));
- gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, test_screen_.get());
- gfx::Screen::SetScreenTypeDelegate(&screen_type_delegate_);
+ gfx::Screen::SetScreenInstance(test_screen_.get());
#endif
error_controller_ = SigninErrorControllerFactory::GetForProfile(
@@ -93,8 +77,7 @@ class SigninErrorNotifierTest : public AshTestBase {
void TearDown() override {
#if defined(OS_WIN)
- gfx::Screen::SetScreenTypeDelegate(nullptr);
- gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, nullptr);
+ gfx::Screen::SetScreenInstance(nullptr);
test_screen_.reset();
#endif
profile_manager_.reset();
@@ -113,7 +96,6 @@ class SigninErrorNotifierTest : public AshTestBase {
}
#if defined(OS_WIN)
- ScreenTypeDelegateDesktop screen_type_delegate_;
scoped_ptr<gfx::Screen> test_screen_;
#endif
scoped_ptr<TestingProfileManager> profile_manager_;
« no previous file with comments | « chrome/browser/plugins/plugin_power_saver_browsertest.cc ('k') | chrome/browser/sync/sync_error_notifier_ash_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698