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) { |