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

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

Issue 2116613002: Prevent duplicate content script injection defined in manifest.json (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed code review comments Created 4 years, 5 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/duplicate_script_injection/test.js
diff --git a/blimp/common/switches.cc b/chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/test.js
similarity index 54%
copy from blimp/common/switches.cc
copy to chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/test.js
index 4f1c0567e8c5665d4018043d17219ca9857215fd..d342bc0011b7bd470c3b81e54017f00e80c3219d 100644
--- a/blimp/common/switches.cc
+++ b/chrome/test/data/extensions/api_test/content_scripts/duplicate_script_injection/test.js
@@ -2,10 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "blimp/common/switches.h"
+var el = document.createElement('div');
+el.className = 'test-duplicate-script-injection';
+document.querySelector('body').appendChild(el);
-namespace blimp {
-const char kClientTokenPath[] = "blimp-client-token-path";
-
-} // namespace blimp

Powered by Google App Engine
This is Rietveld 408576698