OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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_INSTALLER_UTIL_AUTO_LAUNCH_UTIL_H_ |
| 6 #define CHROME_INSTALLER_UTIL_AUTO_LAUNCH_UTIL_H_ |
| 7 #pragma once |
| 8 |
| 9 class FilePath; |
| 10 |
| 11 // A namespace containing the platform specific implementation of setting Chrome |
| 12 // to launch on computer startup. |
| 13 namespace auto_launch_util { |
| 14 |
| 15 // Returns whether the Chrome executable specified in |executable| is set to |
| 16 // auto-launch at computer startup. NOTE: |executable| is optional and should be |
| 17 // blank in most cases (as it will default to the current executable). |
| 18 bool WillLaunchAtLogin(const FilePath& executable); |
| 19 |
| 20 // Configures whether chrome.exe in |application_path| (or the directory of the |
| 21 // current executable) should auto-launch at computer startup. |
| 22 // NOTE: |application_path| is optional and should be blank in most cases (will |
| 23 // default to the chrome application path), but can be overridden if needed. If |
| 24 // |auto_launch| is true, then it will auto-launch, otherwise it will be |
| 25 // configured not to. |
| 26 void SetWillLaunchAtLogin(bool auto_launch, const FilePath& application_path); |
| 27 |
| 28 } // namespace auto_launch_util |
| 29 |
| 30 #endif // CHROME_INSTALLER_UTIL_AUTO_LAUNCH_UTIL_H_ |
OLD | NEW |