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

Unified Diff: chrome/renderer/resources/extensions/enterprise_platform_keys/utils.js

Issue 847333004: Move parts from enterprise.platformKeysInternal to platformKeysInternal for reuse. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert_idl
Patch Set: Rebased. Created 5 years, 11 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/renderer/resources/extensions/enterprise_platform_keys/utils.js
diff --git a/chrome/renderer/resources/extensions/enterprise_platform_keys/utils.js b/chrome/renderer/resources/extensions/enterprise_platform_keys/utils.js
deleted file mode 100644
index 7bfbbf5392fd579b56c1e8169cbc3861f7746311..0000000000000000000000000000000000000000
--- a/chrome/renderer/resources/extensions/enterprise_platform_keys/utils.js
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2014 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.
-
-// Returns the intersection of the arrays |a| and |b|, which do not have to be
-// sorted.
-function intersect(a, b) {
- var result = [];
- for (var i = 0; i < a.length; i++) {
- if (b.indexOf(a[i]) >= 0)
- result.push(a[i]);
- }
- return result;
-};
-
-exports.intersect = intersect;

Powered by Google App Engine
This is Rietveld 408576698