1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_
6#define CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_
7
8#include <string>
9
10#include "base/basictypes.h"
11
12class PrefRegistrySimple;
13class Profile;
14
15namespace app_metro_launch {
16
17// Handles launching apps on browser startup due to an attempt to launch an app
18// in Windows 8 Metro mode.
19void HandleAppLaunchForMetroRestart(Profile* profile);
20
21// Set a local pref to launch an app before relaunching chrome in desktop mode.
22void SetAppLaunchForMetroRestart(Profile* profile,
23                                 const std::string& extension_id);
24
25// Register preferences to do with launching apps in Metro.
26void RegisterPrefs(PrefRegistrySimple* registry);
27
28}  // namespace app_metro_launch
29
30#endif  // CHROME_BROWSER_APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H_
31