| Index: chrome/browser/extensions/api/myapi/myapi_api.cc
|
| diff --git a/chrome/browser/extensions/api/myapi/myapi_api.cc b/chrome/browser/extensions/api/myapi/myapi_api.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..16d875e2940b5aed626d22c2db3bfae954210910
|
| --- /dev/null
|
| +++ b/chrome/browser/extensions/api/myapi/myapi_api.cc
|
| @@ -0,0 +1,10 @@
|
| +api::myapi::Foo foo;
|
| +foo.id = 5;
|
| +foo.bar = "hello world";
|
| +ExtensionSystem::Get(profile)->event_router()->DispatchEventToExtension(
|
| + extension_id,
|
| + event_names::kOnInterestingEvent,
|
| + *api::myapi::OnInterestingEvent::Create(foo),
|
| + profile,
|
| + GURL());
|
| +
|
|
|