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

Unified Diff: chrome/test/data/extensions/api_test/content_scripts/policy_blocked/inject.js

Issue 2499493004: Communicate ExtensionSettings policy to renderers (Closed)
Patch Set: Style fixes, prevent heap leak. Created 3 years, 10 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/content_scripts/policy_blocked/inject.js
diff --git a/chrome/test/data/extensions/api_test/content_scripts/policy_blocked/inject.js b/chrome/test/data/extensions/api_test/content_scripts/policy_blocked/inject.js
new file mode 100644
index 0000000000000000000000000000000000000000..09fae1e4b0083018175052cefd83687a61bc871b
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/content_scripts/policy_blocked/inject.js
@@ -0,0 +1,6 @@
+// Copyright (c) 2016 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.
+
+// If injection happens signal fail.
+chrome.test.notifyFail("Injected into page protected by policy");
Devlin 2017/02/14 23:17:10 single quotes in js
nrpeter 2017/03/22 23:47:39 Test was not needed.

Powered by Google App Engine
This is Rietveld 408576698