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

Unified Diff: chrome/browser/sync/test/integration/sync_test.cc

Issue 9572001: Do cookie checks in NetworkDelegate instead of the URLRequest::Delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix Created 8 years, 10 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/browser/sync/test/integration/sync_test.cc
diff --git a/chrome/browser/sync/test/integration/sync_test.cc b/chrome/browser/sync/test/integration/sync_test.cc
index 8a52a5e3177602ed97fcf759641dc9fa2444a08c..b7806cfe356b10a7138ba2168c0b1cd277d7b2b6 100644
--- a/chrome/browser/sync/test/integration/sync_test.cc
+++ b/chrome/browser/sync/test/integration/sync_test.cc
@@ -36,6 +36,7 @@
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/content_url_request_user_data.h"
#include "content/public/common/url_fetcher.h"
#include "content/public/common/url_fetcher_delegate.h"
#include "content/test/test_browser_thread.h"
@@ -551,6 +552,8 @@ bool SyncTest::IsTestServerRunning() {
scoped_ptr<content::URLFetcher> fetcher(content::URLFetcher::Create(
sync_url_status, content::URLFetcher::GET, &delegate));
fetcher->SetRequestContext(g_browser_process->system_request_context());
+ fetcher->SetContentURLRequestUserData(
+ new content::ContentURLRequestUserData());
fetcher->Start();
ui_test_utils::RunMessageLoop();
return delegate.running();

Powered by Google App Engine
This is Rietveld 408576698