Disable cookies and caching for inline install webstore requests.
BUG=96524
TEST=check inlineinstall requests using about://net-internals, cookies are not passed
[email protected]
Review URL: http://codereview.chromium.org/7891032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101096 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/webstore_inline_installer.cc b/chrome/browser/extensions/webstore_inline_installer.cc
index 7db795f..696fe20 100644
--- a/chrome/browser/extensions/webstore_inline_installer.cc
+++ b/chrome/browser/extensions/webstore_inline_installer.cc
@@ -19,6 +19,7 @@
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/utility_process_host.h"
#include "net/base/escape.h"
+#include "net/base/load_flags.h"
#include "net/url_request/url_request_status.h"
const char kManifestKey[] = "manifest";
@@ -163,6 +164,9 @@
tab_contents()->browser_context());
webstore_data_url_fetcher_->set_request_context(
profile->GetRequestContext());
+ webstore_data_url_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES |
+ net::LOAD_DO_NOT_SAVE_COOKIES |
+ net::LOAD_DISABLE_CACHE);
webstore_data_url_fetcher_->Start();
}