summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-21 00:09:14 +0000
committerrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-21 00:09:14 +0000
commit6252280c506247711b258b6fd4e01ce1de297862 (patch)
treedcbd4beb4ae85d44811a8f2423f750266dc4fa6f /chrome
parentcd3fd1e192398c64deaa8150855533abd21bc79b (diff)
downloadchromium_src-6252280c506247711b258b6fd4e01ce1de297862.zip
chromium_src-6252280c506247711b258b6fd4e01ce1de297862.tar.gz
chromium_src-6252280c506247711b258b6fd4e01ce1de297862.tar.bz2
Fix cookie settings for URLFetcher used by sync integration tests
The sync integration tests use a temporary URLFetcher to check if the test sync server is up and running prior to running tests. There is no need for this fetcher to store cookies on the local machine. This patch updates the load flags for the URLFetcher to not store cookies. BUG=118959, 118914 TEST=sync_integration_tests Review URL: https://chromiumcodereview.appspot.com/9748001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127844 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/sync/test/integration/sync_test.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index ce18e5d..57acfb7 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -41,6 +41,7 @@
#include "content/test/test_url_fetcher_factory.h"
#include "googleurl/src/gurl.h"
#include "net/base/escape.h"
+#include "net/base/load_flags.h"
#include "net/base/network_change_notifier.h"
#include "net/proxy/proxy_config.h"
#include "net/proxy/proxy_config_service_fixed.h"
@@ -553,6 +554,9 @@ bool SyncTest::IsTestServerRunning() {
SyncServerStatusChecker delegate;
scoped_ptr<content::URLFetcher> fetcher(content::URLFetcher::Create(
sync_url_status, content::URLFetcher::GET, &delegate));
+ fetcher->SetLoadFlags(net::LOAD_DISABLE_CACHE |
+ net::LOAD_DO_NOT_SEND_COOKIES |
+ net::LOAD_DO_NOT_SAVE_COOKIES);
fetcher->SetRequestContext(g_browser_process->system_request_context());
fetcher->Start();
ui_test_utils::RunMessageLoop();