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

Unified Diff: content/browser/devtools/protocol/network_handler.cc

Issue 2087293003: [DevTools] Network.emulateNetworkConditions now affects NetworkStateNotifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck Created 4 years, 6 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: content/browser/devtools/protocol/network_handler.cc
diff --git a/content/browser/devtools/protocol/network_handler.cc b/content/browser/devtools/protocol/network_handler.cc
index 7ecc06fe739d1c2c4445f9d83b202e0ba60f6d8d..ae9a58d7ce8a196e7ddc29895796a50a2c0ed3da 100644
--- a/content/browser/devtools/protocol/network_handler.cc
+++ b/content/browser/devtools/protocol/network_handler.cc
@@ -289,11 +289,13 @@ Response NetworkHandler::CanEmulateNetworkConditions(bool* result) {
return Response::OK();
}
-Response NetworkHandler::EmulateNetworkConditions(bool offline,
- double latency,
- double download_throughput,
- double upload_throughput) {
- return Response::InternalError("EmulateNetworkConditions is not supported");
+Response NetworkHandler::EmulateNetworkConditions(
+ bool offline,
+ double latency,
+ double download_throughput,
+ double upload_throughput,
+ const std::string* connection_type) {
+ return Response::FallThrough();
}
Response NetworkHandler::GetCertificateDetails(

Powered by Google App Engine
This is Rietveld 408576698