Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Side by Side Diff: chrome/browser/browser_main_win.h

Issue 6462024: Register Application Restart with Windows Restart Manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_main_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 12
13 // Handle uninstallation when given the appropriate the command-line switch. 13 // Handle uninstallation when given the appropriate the command-line switch.
14 // 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
15 // user to close the other chrome instance. 15 // user to close the other chrome instance.
16 int DoUninstallTasks(bool chrome_still_running); 16 int DoUninstallTasks(bool chrome_still_running);
17 17
18 // Prepares the localized strings that are going to be displayed to 18 // Prepares the localized strings that are going to be displayed to
19 // 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
20 // 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
21 // chrome executable's lifetime. 21 // chrome executable's lifetime.
22 void PrepareRestartOnCrashEnviroment(const CommandLine &parsed_command_line); 22 void PrepareRestartOnCrashEnviroment(const CommandLine& parsed_command_line);
23
24 // Registers Chrome with the Windows Restart Manager, which will restore the
25 // Chrome session when the computer is restarted after a system update.
26 bool RegisterApplicationRestart(const CommandLine& parsed_command_line);
23 27
24 // This method handles the --hide-icons and --show-icons command line options 28 // This method handles the --hide-icons and --show-icons command line options
25 // for chrome that get triggered by Windows from registry entries 29 // for chrome that get triggered by Windows from registry entries
26 // HideIconsCommand & ShowIconsCommand. Chrome doesn't support hide icons 30 // HideIconsCommand & ShowIconsCommand. Chrome doesn't support hide icons
27 // functionality so we just ask the users if they want to uninstall Chrome. 31 // functionality so we just ask the users if they want to uninstall Chrome.
28 int HandleIconsCommands(const CommandLine &parsed_command_line); 32 int HandleIconsCommands(const CommandLine& parsed_command_line);
29 33
30 // Check if there is any machine level Chrome installed on the current 34 // Check if there is any machine level Chrome installed on the current
31 // machine. If yes and the current Chrome process is user level, we do not 35 // machine. If yes and the current Chrome process is user level, we do not
32 // allow the user level Chrome to run. So we notify the user and uninstall 36 // allow the user level Chrome to run. So we notify the user and uninstall
33 // user level Chrome. 37 // user level Chrome.
34 bool CheckMachineLevelInstall(); 38 bool CheckMachineLevelInstall();
35 39
36 #endif // CHROME_BROWSER_BROWSER_MAIN_WIN_H_ 40 #endif // CHROME_BROWSER_BROWSER_MAIN_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/browser_main_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698