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

Unified Diff: chrome/test/data/extensions/api_test/runtime/on_restart_required/background.js

Issue 16844020: app_mode: Add runtime.onRestartRequired event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: restore onBrowserUpdateAvailable and address comments in #2 Created 7 years, 6 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/api_test/runtime/on_restart_required/background.js
diff --git a/ui/base/cocoa/flipped_view.mm b/chrome/test/data/extensions/api_test/runtime/on_restart_required/background.js
similarity index 55%
copy from ui/base/cocoa/flipped_view.mm
copy to chrome/test/data/extensions/api_test/runtime/on_restart_required/background.js
index 57c16477a94b7b30f709bc71abbe10fe009b4ee8..64d4d0bd908be33dd48a8949df0a38cb092e8a24 100644
--- a/ui/base/cocoa/flipped_view.mm
+++ b/chrome/test/data/extensions/api_test/runtime/on_restart_required/background.js
@@ -2,12 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ui/base/cocoa/flipped_view.h"
-
-@implementation FlippedView
-
-- (BOOL)isFlipped {
- return YES;
+function onRestartRequired(reason) {
+ chrome.test.sendMessage(reason);
}
-@end
+chrome.runtime.onRestartRequired.addListener(onRestartRequired);

Powered by Google App Engine
This is Rietveld 408576698