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

Unified Diff: chrome/test/data/extensions/platform_apps/reload/main.js

Issue 306823002: Flip --enable-apps-show-on-first-paint flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests Created 6 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/test/data/extensions/platform_apps/reload/main.js
diff --git a/chrome/test/data/extensions/platform_apps/reload/main.js b/chrome/test/data/extensions/platform_apps/reload/main.js
index 8d4d538bdfaab00a7a84b32a3064674ce05baf2f..134299fef02599579cd7a0064d1615e52ff408ae 100644
--- a/chrome/test/data/extensions/platform_apps/reload/main.js
+++ b/chrome/test/data/extensions/platform_apps/reload/main.js
@@ -2,7 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-chrome.test.sendMessage('Launched', function(response) {
- if (response == "reload")
- chrome.runtime.reload();
+chrome.app.window.current().onWindowFirstShown.addListener(function() {
+ chrome.test.sendMessage('Launched', function(response) {
+ if (response == "reload")
+ chrome.runtime.reload();
+ });
});

Powered by Google App Engine
This is Rietveld 408576698