summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/profiles/off_the_record_profile_io_data.cc4
-rw-r--r--chrome/test/data/extensions/api_test/incognito/split/background.html8
2 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/profiles/off_the_record_profile_io_data.cc b/chrome/browser/profiles/off_the_record_profile_io_data.cc
index 4a655e5..2a14b28 100644
--- a/chrome/browser/profiles/off_the_record_profile_io_data.cc
+++ b/chrome/browser/profiles/off_the_record_profile_io_data.cc
@@ -156,9 +156,7 @@ void OffTheRecordProfileIOData::LazyInitializeInternal(
const char* schemes[] = {chrome::kChromeDevToolsScheme,
chrome::kExtensionScheme};
extensions_cookie_store->SetCookieableSchemes(schemes, 2);
-
- extensions_context->set_cookie_store(
- new net::CookieMonster(NULL, NULL));
+ extensions_context->set_cookie_store(extensions_cookie_store);
net::HttpCache::BackendFactory* main_backend =
net::HttpCache::DefaultBackend::InMemory(0);
diff --git a/chrome/test/data/extensions/api_test/incognito/split/background.html b/chrome/test/data/extensions/api_test/incognito/split/background.html
index cd5811c..a84e5d3 100644
--- a/chrome/test/data/extensions/api_test/incognito/split/background.html
+++ b/chrome/test/data/extensions/api_test/incognito/split/background.html
@@ -138,8 +138,16 @@ chrome.test.getConfig(function(config) {
"created node != source");
}));
}));
+ },
+
+ // Tests that we can set cookies in both processes.
+ function setDocumentCookie() {
+ document.cookie = "k=v";
+ chrome.test.assertTrue(document.cookie.indexOf("k=v") != -1);
+ chrome.test.succeed();
}
]);
+
});
</script>