Index: chrome/browser/chromeos/app_mode/app_launch_utils.h |
diff --git a/chrome/browser/chromeos/app_mode/app_launch_utils.h b/chrome/browser/chromeos/app_mode/app_launch_utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ac30933f0c113bc2f162fce44580b623191d8348 |
--- /dev/null |
+++ b/chrome/browser/chromeos/app_mode/app_launch_utils.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_APP_MODE_APP_LAUNCH_UTILS_H_ |
+#define CHROME_BROWSER_CHROMEOS_APP_MODE_APP_LAUNCH_UTILS_H_ |
+ |
+#include <string> |
+ |
+class Profile; |
+ |
+namespace chromeos { |
+ |
+// Attempts to launch the app given by |app_id| in app mode |
+// or exit on failure. This function will not show any launch UI |
+// during the launch. Use StartupAppLauncher for finer control |
+// over the app launch processes. |
+void LaunchAppOrDie(Profile *profile, const std::string& app_id); |
+ |
+} // namespace chromeos |
+ |
+#endif // CHROME_BROWSER_CHROMEOS_APP_MODE_APP_LAUNCH_UTILS_H_ |