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

Unified Diff: mojo/services/network/url_loader_impl_apptest.cc

Issue 1434563004: Enable multiprocess by default on desktop mojo_runner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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
« no previous file with comments | « mojo/runner/desktop/launcher_process.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/url_loader_impl_apptest.cc
diff --git a/mojo/services/network/url_loader_impl_apptest.cc b/mojo/services/network/url_loader_impl_apptest.cc
index f21d684eae8dddfcf429faf4bb4eb2ed53e943e1..7bbbba6f490996129d5f23f0914fa6ad2c745811 100644
--- a/mojo/services/network/url_loader_impl_apptest.cc
+++ b/mojo/services/network/url_loader_impl_apptest.cc
@@ -60,18 +60,24 @@ class TestURLRequestJob : public net::URLRequestJob {
void NotifyReadComplete(int bytes_read) {
if (bytes_read < 0) {
- status_ = COMPLETED;
NotifyDone(net::URLRequestStatus(
net::URLRequestStatus::FromError(net::ERR_FAILED)));
net::URLRequestJob::NotifyReadComplete(0);
- } else if (bytes_read == 0) {
+ // Set this after calling ReadRawDataComplete since that ends up calling
+ // ReadRawData.
status_ = COMPLETED;
+ } else if (bytes_read == 0) {
NotifyDone(net::URLRequestStatus());
net::URLRequestJob::NotifyReadComplete(bytes_read);
+ // Set this after calling ReadRawDataComplete since that ends up calling
+ // ReadRawData.
+ status_ = COMPLETED;
} else {
- status_ = STARTED;
SetStatus(net::URLRequestStatus());
net::URLRequestJob::NotifyReadComplete(bytes_read);
+ // Set this after calling ReadRawDataComplete since that ends up calling
+ // ReadRawData.
+ status_ = STARTED;
}
}
« no previous file with comments | « mojo/runner/desktop/launcher_process.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698