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

Unified Diff: remoting/webapp/window_frame.js

Issue 398403002: Check isActive in onRestore to work-around crbug.com/394819. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer feedback. Created 6 years, 5 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
« no previous file with comments | « remoting/webapp/fullscreen_v2.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/window_frame.js
diff --git a/remoting/webapp/window_frame.js b/remoting/webapp/window_frame.js
index 6bdf3fb752ca70f48151615d4e28b89db79f8323..45dc18ef5182cb87f035bfc5c3752bc372f5e91a 100644
--- a/remoting/webapp/window_frame.js
+++ b/remoting/webapp/window_frame.js
@@ -112,7 +112,6 @@ remoting.WindowFrame.prototype.disconnectSession_ = function() {
// that causes it to get stuck in full-screen mode without this.
if (chrome.app.window.current().isFullscreen()) {
chrome.app.window.current().restore();
- chrome.app.window.current().restore();
}
remoting.disconnect();
};
@@ -130,7 +129,6 @@ remoting.WindowFrame.prototype.maximizeOrRestoreWindow_ = function() {
// If the app is not full-screen, or went full-screen without first
// being maximized, then the second restore has no effect.
chrome.app.window.current().restore();
- chrome.app.window.current().restore();
} else if (this.isConnected_) {
chrome.app.window.current().fullscreen();
} else {
« no previous file with comments | « remoting/webapp/fullscreen_v2.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698