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

Unified Diff: chrome/browser/extensions/api/myapi/myapi_api.cc

Issue 17679004: testing adding an extension api Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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/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());
+
« no previous file with comments | « chrome/browser/extensions/api/myapi/myapi_api.h ('k') | chrome/browser/extensions/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698