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

Unified Diff: chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc

Issue 11363124: Move DisplayManager and DisplayChangeObserverX11 from aura to ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix rebase Created 8 years, 1 month 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
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.cc ('k') | chrome/browser/ui/ash/ash_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc
diff --git a/chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc b/chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc
index 9711729e73809f332d3a1645b87af83a6bf366f1..a5ed8af4dc92f935617cc0805bc3d4700abdeb9f 100644
--- a/chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc
+++ b/chrome/browser/chromeos/login/wallpaper_manager_browsertest.cc
@@ -7,9 +7,9 @@
#include "ash/desktop_background/desktop_background_resources.h"
#include "ash/desktop_background/desktop_background_controller.h"
#include "ash/desktop_background/desktop_background_controller_observer.h"
-#include "ash/display/multi_display_manager.h"
+#include "ash/display/display_manager.h"
#include "ash/shell.h"
-#include "ash/test/multi_display_manager_test_api.h"
+#include "ash/test/display_manager_test_api.h"
#include "base/file_util.h"
#include "base/message_loop.h"
#include "base/string_number_conversions.h"
@@ -20,7 +20,6 @@
#include "chrome/browser/prefs/scoped_user_pref_update.h"
#include "chrome/test/base/testing_browser_process.h"
#include "ui/aura/env.h"
-#include "ui/aura/display_manager.h"
#include "ui/base/resource/resource_bundle.h"
using namespace ash;
@@ -70,15 +69,12 @@ class WallpaperManagerBrowserTest : public CrosInProcessBrowserTest,
}
// Update the display configuration as given in |display_specs|.
- // See ash::test::MultiDisplayManagerTestApi::UpdateDisplay for more
+ // See ash::test::DisplayManagerTestApi::UpdateDisplay for more
// details.
void UpdateDisplay(const std::string& display_specs) {
- internal::MultiDisplayManager* multi_display_manager =
- static_cast<internal::MultiDisplayManager*>(
- aura::Env::GetInstance()->display_manager());
- ash::test::MultiDisplayManagerTestApi multi_display_manager_test_api(
- multi_display_manager);
- multi_display_manager_test_api.UpdateDisplay(display_specs);
+ ash::test::DisplayManagerTestApi display_manager_test_api(
+ ash::Shell::GetInstance()->display_manager());
+ display_manager_test_api.UpdateDisplay(display_specs);
}
void WaitAsyncWallpaperLoad() {
« no previous file with comments | « chrome/browser/chromeos/display/display_preferences.cc ('k') | chrome/browser/ui/ash/ash_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698