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

Unified Diff: chrome/renderer/extensions/api_activity_logger.cc

Issue 18769009: [Activity Log] fix logging of blocked API calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed a logging statement Created 7 years, 5 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/renderer/extensions/api_activity_logger.cc
diff --git a/chrome/renderer/extensions/api_activity_logger.cc b/chrome/renderer/extensions/api_activity_logger.cc
index d9980aed1a5d1b6562859ae5b02bc6a0957c7d10..ccf558281c04ab914bc3e1abb0b2cb881bc36f29 100644
--- a/chrome/renderer/extensions/api_activity_logger.cc
+++ b/chrome/renderer/extensions/api_activity_logger.cc
@@ -19,6 +19,8 @@ APIActivityLogger::APIActivityLogger(
: ChromeV8Extension(dispatcher, context) {
RouteFunction("LogEvent", base::Bind(&APIActivityLogger::LogEvent));
RouteFunction("LogAPICall", base::Bind(&APIActivityLogger::LogAPICall));
+ RouteFunction("LogBlockedCall",
+ base::Bind(&APIActivityLogger::LogBlockedCallWrapper));
}
// static
@@ -34,6 +36,16 @@ void APIActivityLogger::LogEvent(
}
// static
+void APIActivityLogger::LogBlockedCallWrapper(
+ const v8::FunctionCallbackInfo<v8::Value>& args) {
+ DCHECK_EQ(args.Length(), 2);
+ DCHECK(args[0]->IsString());
+ DCHECK(args[1]->IsString());
+ LogBlockedCall(*v8::String::AsciiValue(args[0]->ToString()),
+ *v8::String::AsciiValue(args[1]->ToString()));
not at google - send to devlin 2013/07/11 19:22:33 you actually don't need the ToString() here. Ascii
felt 2013/07/12 01:53:04 Done.
+}
+
+// static
void APIActivityLogger::LogInternal(
const CallType call_type,
const v8::FunctionCallbackInfo<v8::Value>& args) {

Powered by Google App Engine
This is Rietveld 408576698