summaryrefslogtreecommitdiffstats
path: root/apps/launcher.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apps/launcher.cc')
-rw-r--r--apps/launcher.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/launcher.cc b/apps/launcher.cc
index 933d37c..aae298f 100644
--- a/apps/launcher.cc
+++ b/apps/launcher.cc
@@ -31,6 +31,7 @@
#include "content/public/browser/web_contents.h"
#include "net/base/mime_util.h"
#include "net/base/net_util.h"
+#include "url/gurl.h"
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/drive/file_errors.h"
@@ -386,4 +387,13 @@ void RestartPlatformApp(Profile* profile, const Extension* extension) {
LaunchPlatformAppWithNoData(profile, extension);
}
+void LaunchPlatformAppWithUrl(Profile* profile,
+ const Extension* extension,
+ const std::string& handler_id,
+ const GURL& url,
+ const GURL& referrer_url) {
+ extensions::AppEventRouter::DispatchOnLaunchedEventWithUrl(
+ profile, extension, handler_id, url, referrer_url);
+}
+
} // namespace apps