Index: apps/launcher.cc |
diff --git a/apps/launcher.cc b/apps/launcher.cc |
index 684379016a38c5a64b36d6d6864cc1326dcf1d42..df32f43a2f781ee4a2d3180ea3f4c8f3c5e09fa9 100644 |
--- a/apps/launcher.cc |
+++ b/apps/launcher.cc |
@@ -29,8 +29,10 @@ |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/web_contents.h" |
+#include "extensions/common/switches.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/drive_integration_service.h" |
@@ -387,4 +389,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 |