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

Unified Diff: chrome/browser/resources/hotword_audio_verification/flow.js

Issue 671333002: Hotword Audio Verification App: Fix window handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo Created 6 years, 2 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 | « chrome/browser/resources/hotword_audio_verification/event_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/hotword_audio_verification/flow.js
diff --git a/chrome/browser/resources/hotword_audio_verification/flow.js b/chrome/browser/resources/hotword_audio_verification/flow.js
index 635456a06650e4a47640fa85cbcd4ad929572492..0ba06570fc18082d004a9d50ba5b00f7c3f9e6cd 100644
--- a/chrome/browser/resources/hotword_audio_verification/flow.js
+++ b/chrome/browser/resources/hotword_audio_verification/flow.js
@@ -73,6 +73,8 @@
*/
Flow.prototype.showStep_ = function() {
var currentStep = this.currentFlow_[this.currentStepIndex_];
+ document.getElementById(currentStep).hidden = false;
+
var previousStep = null;
if (this.currentStepIndex_ > 0)
previousStep = this.currentFlow_[this.currentStepIndex_ - 1];
@@ -80,7 +82,7 @@
if (previousStep)
document.getElementById(previousStep).hidden = true;
- document.getElementById(currentStep).hidden = false;
+ chrome.app.window.current().show();
};
window.Flow = Flow;
« no previous file with comments | « chrome/browser/resources/hotword_audio_verification/event_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698