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

Unified Diff: chrome/browser/extensions/platform_app_launcher.cc

Issue 14579006: Start app shim when app launched. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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: 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 bffd8c826850d1dd200ed3396857ba781c13acf5..8ac823ce26fcd41d50de8f2d6c068710e7768ff5 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::internals::LaunchShim(profile, extension, base::Bind(&DoNothing));
tapted 2013/05/16 04:51:00 Would a base::Closure() with no arguments have the
jackhou1 2013/05/17 05:45:36 Nup, it needs to take a bool.
}
// Class to handle launching of platform apps to open a specific path.

Powered by Google App Engine
This is Rietveld 408576698