OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Contains functions used by BrowserMain() that are win32-specific. | 5 // Contains functions used by BrowserMain() that are win32-specific. |
6 | 6 |
7 #ifndef CHROME_BROWSER_BROWSER_MAIN_WIN_H_ | 7 #ifndef CHROME_BROWSER_BROWSER_MAIN_WIN_H_ |
8 #define CHROME_BROWSER_BROWSER_MAIN_WIN_H_ | 8 #define CHROME_BROWSER_BROWSER_MAIN_WIN_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 class CommandLine; | 11 class CommandLine; |
12 class MetricsService; | |
13 | 12 |
14 // Handle uninstallation when given the appropriate the command-line switch. | 13 // Handle uninstallation when given the appropriate the command-line switch. |
15 // If |chrome_still_running| is true a modal dialog will be shown asking the | 14 // If |chrome_still_running| is true a modal dialog will be shown asking the |
16 // user to close the other chrome instance. | 15 // user to close the other chrome instance. |
17 int DoUninstallTasks(bool chrome_still_running); | 16 int DoUninstallTasks(bool chrome_still_running); |
18 | 17 |
19 // Prepares the localized strings that are going to be displayed to | 18 // Prepares the localized strings that are going to be displayed to |
20 // the user if the browser process dies. These strings are stored in the | 19 // the user if the browser process dies. These strings are stored in the |
21 // environment block so they are accessible in the early stages of the | 20 // environment block so they are accessible in the early stages of the |
22 // chrome executable's lifetime. | 21 // chrome executable's lifetime. |
23 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line); | 22 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line); |
24 | 23 |
25 // This method handles the --hide-icons and --show-icons command line options | 24 // This method handles the --hide-icons and --show-icons command line options |
26 // for chrome that get triggered by Windows from registry entries | 25 // for chrome that get triggered by Windows from registry entries |
27 // HideIconsCommand & ShowIconsCommand. Chrome doesn't support hide icons | 26 // HideIconsCommand & ShowIconsCommand. Chrome doesn't support hide icons |
28 // functionality so we just ask the users if they want to uninstall Chrome. | 27 // functionality so we just ask the users if they want to uninstall Chrome. |
29 int HandleIconsCommands(const CommandLine &parsed_command_line); | 28 int HandleIconsCommands(const CommandLine &parsed_command_line); |
30 | 29 |
31 // Check if there is any machine level Chrome installed on the current | 30 // Check if there is any machine level Chrome installed on the current |
32 // machine. If yes and the current Chrome process is user level, we do not | 31 // machine. If yes and the current Chrome process is user level, we do not |
33 // allow the user level Chrome to run. So we notify the user and uninstall | 32 // allow the user level Chrome to run. So we notify the user and uninstall |
34 // user level Chrome. | 33 // user level Chrome. |
35 bool CheckMachineLevelInstall(); | 34 bool CheckMachineLevelInstall(); |
36 | 35 |
37 #endif // CHROME_BROWSER_BROWSER_MAIN_WIN_H_ | 36 #endif // CHROME_BROWSER_BROWSER_MAIN_WIN_H_ |
OLD | NEW |