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

Unified Diff: apps/launcher.cc

Issue 23847004: "Redirecting URLs to Packaged Apps" implementation: revised (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved URL handler finding from UI to IO thread: avoid unnecessary throttle creation Created 7 years, 3 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: apps/launcher.cc
diff --git a/apps/launcher.cc b/apps/launcher.cc
index 684379016a38c5a64b36d6d6864cc1326dcf1d42..2f5790f0e81ec153545d753c5f65eb247aad3cbb 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/drive_integration_service.h"
@@ -387,4 +388,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

Powered by Google App Engine
This is Rietveld 408576698