summaryrefslogtreecommitdiffstats
path: root/apps/app_launch_for_metro_restart_win.h
blob: dfbd13ebf6d9b8360e82e548e19b454390b711d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// 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 APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H
#define APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H

#include <string>

#include "base/basictypes.h"

class Profile;

namespace apps {

// Handles launching apps on browser startup due to an attempt to launch an app
// in Windows 8 Metro mode.
void HandleAppLaunchForMetroRestart(Profile* profile);

// Set a local pref to launch an app before relaunching chrome in desktop mode.
void SetAppLaunchForMetroRestart(Profile* profile,
                                 const std::string& extension_id);

}  // namespace apps

#endif  // APPS_APP_LAUNCH_FOR_METRO_RESTART_WIN_H