Index: chrome/browser/extensions/platform_app_launcher.cc |
diff --git a/chrome/browser/extensions/platform_app_launcher.cc b/chrome/browser/extensions/platform_app_launcher.cc |
index 8e22447e8a1e304a9124a7d68722265568491123..be14608ed727e5d50056301399559838a7be786d 100644 |
--- a/chrome/browser/extensions/platform_app_launcher.cc |
+++ b/chrome/browser/extensions/platform_app_launcher.cc |
@@ -22,6 +22,7 @@ |
#include "chrome/browser/extensions/lazy_background_task_queue.h" |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/extensions/app_metro_infobar_delegate_win.h" |
+#include "chrome/browser/web_applications/web_app.h" |
#include "chrome/common/extensions/extension.h" |
#include "chrome/common/extensions/extension_messages.h" |
#include "content/public/browser/browser_thread.h" |
@@ -90,12 +91,15 @@ bool GetAbsolutePathFromCommandLine(const CommandLine* command_line, |
return true; |
} |
+void DoNothing(bool) {} |
+ |
// Helper method to launch the platform app |extension| with no data. This |
// should be called in the fallback case, where it has been impossible to |
// load or obtain file launch data. |
void LaunchPlatformAppWithNoData(Profile* profile, const Extension* extension) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
extensions::AppEventRouter::DispatchOnLaunchedEvent(profile, extension); |
+ web_app::LaunchShim(profile, extension, base::Bind(&DoNothing)); |
jackhou1
2013/05/17 05:49:33
Should we just let the shim do the launch?
benwells
2013/05/17 05:59:41
One downside is that if there is any problem with
tapted
2013/05/17 06:44:00
So non committal ;). But won't we need to handle t
benwells
2013/05/21 03:14:47
Well, I trust you guys know more about the ins and
|
} |
// Class to handle launching of platform apps to open a specific path. |