Commit 045af40b authored by oshima@chromium.org's avatar oshima@chromium.org

Don't create mirror window during bootstrap

BUG=255535
TEST=on lucas, enable mirror mode, then logout, or reboot.

Review URL: https://chromiumcodereview.appspot.com/18218002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209344 0039d316-1c4b-4281-b951-d872f2087c98
parent 07cfed2b
...@@ -38,6 +38,7 @@ namespace ash { ...@@ -38,6 +38,7 @@ namespace ash {
namespace internal { namespace internal {
class DisplayManager; class DisplayManager;
class FocusActivationStore; class FocusActivationStore;
class MirrorWindowController;
class RootWindowController; class RootWindowController;
} }
...@@ -165,6 +166,7 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver { ...@@ -165,6 +166,7 @@ class ASH_EXPORT DisplayController : public gfx::DisplayObserver {
private: private:
friend class internal::DisplayManager; friend class internal::DisplayManager;
friend class internal::MirrorWindowController;
// Creates a root window for |display| and stores it in the |root_windows_| // Creates a root window for |display| and stores it in the |root_windows_|
// map. // map.
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#undef RootWindow #undef RootWindow
#endif #endif
#include "ash/display/display_controller.h"
#include "ash/display/display_info.h" #include "ash/display/display_info.h"
#include "ash/display/display_manager.h" #include "ash/display/display_manager.h"
#include "ash/display/root_window_transformers.h" #include "ash/display/root_window_transformers.h"
...@@ -155,6 +156,9 @@ MirrorWindowController::~MirrorWindowController() { ...@@ -155,6 +156,9 @@ MirrorWindowController::~MirrorWindowController() {
} }
void MirrorWindowController::UpdateWindow(const DisplayInfo& display_info) { void MirrorWindowController::UpdateWindow(const DisplayInfo& display_info) {
if (Shell::GetInstance()->display_controller()->in_bootstrap())
return;
static int mirror_root_window_count = 0; static int mirror_root_window_count = 0;
DisplayManager* display_manager = Shell::GetInstance()->display_manager(); DisplayManager* display_manager = Shell::GetInstance()->display_manager();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment