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

Unified Diff: chrome/test/data/extensions/platform_apps/component_reload/background.js

Issue 2893693002: Remove NOTIFICATION_EXTENSION_ENABLED. (Closed)
Patch Set: add code for component reload 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/test/data/extensions/platform_apps/component_reload/background.js
diff --git a/chrome/test/data/extensions/platform_apps/component_reload/background.js b/chrome/test/data/extensions/platform_apps/component_reload/background.js
new file mode 100644
index 0000000000000000000000000000000000000000..a09644e37a14308de38d8e958c9c7660efc3270e
--- /dev/null
+++ b/chrome/test/data/extensions/platform_apps/component_reload/background.js
@@ -0,0 +1,8 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// 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")
Devlin 2017/06/02 01:57:28 nit: do we expect any other response? If not, may
lazyboy 2017/06/02 18:35:37 Done.
+ chrome.runtime.reload();
+});

Powered by Google App Engine
This is Rietveld 408576698