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

Unified Diff: chrome/browser/ui/webui/chromeos/login/oobe_display_chooser.h

Issue 2885153004: React to primary display change instead of removal (Closed)
Patch Set: Workaround DisplayConfigurationController display switch limiter Created 3 years, 7 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/ui/webui/chromeos/login/oobe_display_chooser.h
diff --git a/chrome/browser/ui/webui/chromeos/login/oobe_display_chooser.h b/chrome/browser/ui/webui/chromeos/login/oobe_display_chooser.h
index 8482b9121d62d76f24112fb9f2a010244219933b..c4ebe5a880e1e313976d0c68f583c8c4c27ecd1f 100644
--- a/chrome/browser/ui/webui/chromeos/login/oobe_display_chooser.h
+++ b/chrome/browser/ui/webui/chromeos/login/oobe_display_chooser.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_OOBE_DISPLAY_CHOOSER_H_
#include "base/macros.h"
+#include "base/memory/weak_ptr.h"
namespace chromeos {
@@ -15,11 +16,17 @@ class OobeDisplayChooser {
OobeDisplayChooser();
~OobeDisplayChooser();
+ // Must be called on the BrowserThread::UI thread.
void TryToPlaceUiOnTouchDisplay();
private:
void MoveToTouchDisplay();
+ // Used to only have one request for display switching in flight at a time.
+ bool display_switch_requested_ = false;
+
+ base::WeakPtrFactory<OobeDisplayChooser> weak_ptr_factory_;
+
DISALLOW_COPY_AND_ASSIGN(OobeDisplayChooser);
};

Powered by Google App Engine
This is Rietveld 408576698