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

Unified Diff: chrome/test/data/extensions/extension_throttle/background.js

Issue 1923003002: Clear Resource::m_loader in Resource::finish() and Resource::error() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/extension_throttle/background.js
diff --git a/chrome/test/data/extensions/extension_throttle/background.js b/chrome/test/data/extensions/extension_throttle/background.js
index 52c8e340e0c6c8317bbe9d32311d549dee751ca0..3fe16cd7df404b84f15b943039ec2853ec55e8b5 100644
--- a/chrome/test/data/extensions/extension_throttle/background.js
+++ b/chrome/test/data/extensions/extension_throttle/background.js
@@ -6,6 +6,7 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
if (message.type == "xhr") {
var xhr = new XMLHttpRequest();
xhr.open(message.method, message.url);
+ xhr.setRequestHeader("X-Bust-Blink-MemoryCache", Math.random());
Nate Chapin 2016/04/27 19:48:30 This test depends on the memoryCache()->remove() q
hiroshige 2016/05/02 06:39:27 Could you add a comment that this header is added
Nate Chapin 2016/05/10 18:26:17 Yeah, sorry. I was hoping the header-name was clea
xhr.send();
} else {
console.error("Unknown message: " + JSON.stringify(message));

Powered by Google App Engine
This is Rietveld 408576698