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

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

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 2 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
===================================================================
--- chrome/browser/sync/test/integration/sync_test.cc (revision 107061)
+++ chrome/browser/sync/test/integration/sync_test.cc (working copy)
@@ -71,11 +71,12 @@
public:
SyncServerStatusChecker() : running_(false) {}
- virtual void OnURLFetchComplete(const URLFetcher* source) {
+ virtual void OnURLFetchComplete(const content::URLFetcher* source) {
std::string data;
source->GetResponseAsString(&data);
- running_ = (source->status().status() == net::URLRequestStatus::SUCCESS &&
- source->response_code() == 200 && data.find("ok") == 0);
+ running_ =
+ (source->GetStatus().status() == net::URLRequestStatus::SUCCESS &&
+ source->GetResponseCode() == 200 && data.find("ok") == 0);
MessageLoop::current()->Quit();
}
@@ -508,7 +509,7 @@
GURL sync_url_status(sync_url.append("/healthz"));
SyncServerStatusChecker delegate;
URLFetcher fetcher(sync_url_status, URLFetcher::GET, &delegate);
- fetcher.set_request_context(Profile::Deprecated::GetDefaultRequestContext());
+ fetcher.SetRequestContext(Profile::Deprecated::GetDefaultRequestContext());
fetcher.Start();
ui_test_utils::RunMessageLoop();
return delegate.running();
« no previous file with comments | « chrome/browser/sync/glue/http_bridge_unittest.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698