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

Unified Diff: chrome/test/data/extensions/api_test/instance_id/channel/test.js

Issue 1139633005: Make chrome.instanceID only available on dev and canary. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback Created 5 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/api_test/instance_id/channel/test.js
diff --git a/ui/oobe/resources/oobe-element.js b/chrome/test/data/extensions/api_test/instance_id/channel/test.js
similarity index 55%
copy from ui/oobe/resources/oobe-element.js
copy to chrome/test/data/extensions/api_test/instance_id/channel/test.js
index aeadaf3f32d5e9ed8ed677eef2056e360fc7e8d5..298fa2cdce02bf2b4ffdf3cb3ab126bf06e85fdb 100644
--- a/ui/oobe/resources/oobe-element.js
+++ b/chrome/test/data/extensions/api_test/instance_id/channel/test.js
@@ -2,11 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-Polymer('oobe-element', {
- initialize: function() {
- this.contextChanged();
- },
-
- contextChanged: function(changedKeys) {
+chrome.test.runTests([
+ function test() {
+ if (chrome.instanceID)
+ chrome.test.fail();
+ else
+ chrome.test.succeed();
}
-});
+]);

Powered by Google App Engine
This is Rietveld 408576698