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

Unified Diff: chrome/browser/extensions/dom_actions.cc

Issue 12491012: Improved extension activity logging for the chrome.webRequest API. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 8 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
« no previous file with comments | « chrome/browser/extensions/dom_actions.h ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/dom_actions.cc
diff --git a/chrome/browser/extensions/dom_actions.cc b/chrome/browser/extensions/dom_actions.cc
index 2d3b6f4e46fb658e98fbb39bb9bcdfb822fd0a39..ffb8665088e90f622a7664d89b1cafec10eaad7a 100644
--- a/chrome/browser/extensions/dom_actions.cc
+++ b/chrome/browser/extensions/dom_actions.cc
@@ -108,6 +108,8 @@ std::string DOMAction::VerbAsString() const {
return "INSERTED";
case XHR:
return "XHR";
+ case WEBREQUEST:
+ return "WEBREQUEST";
default:
NOTREACHED();
return NULL;
@@ -124,6 +126,8 @@ DOMAction::DOMActionType DOMAction::StringAsDOMActionType(
return INSERTED;
} else if (str == "XHR") {
return XHR;
+ } else if (str == "WEBREQUEST") {
+ return WEBREQUEST;
} else {
NOTREACHED();
return MODIFIED; // this should never happen!
« no previous file with comments | « chrome/browser/extensions/dom_actions.h ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698