Index: apps/launcher.cc |
diff --git a/apps/launcher.cc b/apps/launcher.cc |
index 933d37c46186934bcd0ee0911f96afb34c939b6b..aae298f10454c08e4ac94887267d58411facefbe 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 |