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

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

Issue 15947007: Move application restart and relaunch code out of ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pafooey 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
« no previous file with comments | « chrome/browser/extensions/platform_app_launcher.h ('k') | chrome/browser/extensions/unpacked_installer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54289e49f6f906294fe6ec7be6dcbd91d8176f08..8c6330eb0afac2eb81b292630f9a539d6c86c440 100644
--- a/chrome/browser/extensions/platform_app_launcher.cc
+++ b/chrome/browser/extensions/platform_app_launcher.cc
@@ -280,10 +280,10 @@ class PlatformAppPathLauncher
} // namespace
-void LaunchPlatformApp(Profile* profile,
- const Extension* extension,
- const CommandLine* command_line,
- const base::FilePath& current_directory) {
+void LaunchPlatformAppWithCommandLine(Profile* profile,
+ const Extension* extension,
+ const CommandLine* command_line,
+ const base::FilePath& current_directory) {
#if defined(OS_WIN)
// On Windows 8's single window Metro mode we can not launch platform apps.
// Offer to switch Chrome to desktop mode.
@@ -317,6 +317,10 @@ void LaunchPlatformAppWithPath(Profile* profile,
launcher->Launch();
}
+void LaunchPlatformApp(Profile* profile, const Extension* extension) {
+ LaunchPlatformAppWithCommandLine(profile, extension, NULL, base::FilePath());
+}
+
void LaunchPlatformAppWithFileHandler(Profile* profile,
const Extension* extension,
const std::string& handler_id,
« no previous file with comments | « chrome/browser/extensions/platform_app_launcher.h ('k') | chrome/browser/extensions/unpacked_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698