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

Unified Diff: chrome/test/chromedriver/server/http_handler.cc

Issue 1022543002: [chromedriver] Implement DELETE NetworkConditions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Retrieving network conditions after deleting them raises an exception Created 5 years, 9 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/test/chromedriver/server/http_handler.cc
diff --git a/chrome/test/chromedriver/server/http_handler.cc b/chrome/test/chromedriver/server/http_handler.cc
index 3ae92995c9cd72ace4b60ca63e487f39f26c2f7e..65f05ee941987a0673e8603c3218480a854ebab2 100644
--- a/chrome/test/chromedriver/server/http_handler.cc
+++ b/chrome/test/chromedriver/server/http_handler.cc
@@ -380,6 +380,11 @@ HttpHandler::HttpHandler(
"session/:sessionId/chromium/network_conditions",
WrapToCommand("SetNetworkConditions",
base::Bind(&ExecuteSetNetworkConditions))),
+ CommandMapping(
+ kDelete,
+ "session/:sessionId/chromium/network_conditions",
+ WrapToCommand("DeleteNetworkConditions",
+ base::Bind(&ExecuteDeleteNetworkConditions))),
CommandMapping(kGet,
"session/:sessionId/application_cache/status",
base::Bind(&ExecuteGetStatus)),

Powered by Google App Engine
This is Rietveld 408576698