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

Unified Diff: chrome/test/data/extensions/api_test/webrequest_reload/background.js

Issue 13572005: Fix crash when incognito split mode extension using the WebRequest API was reloaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/webrequest_reload/background.js
diff --git a/chrome/test/data/extensions/api_test/webrequest_reload/background.js b/chrome/test/data/extensions/api_test/webrequest_reload/background.js
new file mode 100644
index 0000000000000000000000000000000000000000..e8e55f401cd2a404c4492b3bb4862b48fe43bd71
--- /dev/null
+++ b/chrome/test/data/extensions/api_test/webrequest_reload/background.js
@@ -0,0 +1,16 @@
+// Copyright (c) 2013 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.webRequest.onBeforeRequest.addListener(
+ function(details) {
+ },
+ {
+ urls: [],
+ types: []
+ },
+ []);
+if (chrome.extension.inIncognitoContext)
+ chrome.test.sendMessage("done_incognito");
+else
+ chrome.test.sendMessage("done");
« no previous file with comments | « chrome/browser/extensions/event_router.cc ('k') | chrome/test/data/extensions/api_test/webrequest_reload/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698