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

Unified Diff: chrome/browser/extensions/api/web_request/web_request_api.cc

Issue 12077029: Removing the Dev channel restriction for requestBody of Web Request API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/extensions/api/web_request/web_request_api.cc
diff --git a/chrome/browser/extensions/api/web_request/web_request_api.cc b/chrome/browser/extensions/api/web_request/web_request_api.cc
index 241086c62a656497594435b088bfbed8e9785697..3271791be5f6f91ff33d12c433ce07213aa017b3 100644
--- a/chrome/browser/extensions/api/web_request/web_request_api.cc
+++ b/chrome/browser/extensions/api/web_request/web_request_api.cc
@@ -95,12 +95,6 @@ const char* const kWebRequestEvents[] = {
#define ARRAYEND(array) (array + arraysize(array))
-// Access to request body (crbug.com/91191/) is currently only enabled in dev
-// and canary channels.
-bool IsWebRequestBodyDataAccessEnabled() {
- return Feature::GetCurrentChannel() <= VersionInfo::CHANNEL_DEV;
-}
-
const char* GetRequestStageAsString(
ExtensionWebRequestEventRouter::EventTypes type) {
switch (type) {
@@ -533,8 +527,7 @@ bool ExtensionWebRequestEventRouter::ExtraInfoSpec::InitFromValue(
else if (str == "asyncBlocking")
*extra_info_spec |= ASYNC_BLOCKING;
else if (str == "requestBody")
- *extra_info_spec |=
- IsWebRequestBodyDataAccessEnabled() ? REQUEST_BODY : 0;
+ *extra_info_spec |= REQUEST_BODY;
else
return false;

Powered by Google App Engine
This is Rietveld 408576698