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

Unified Diff: chrome/browser/browser_main.cc

Issue 6538059: Revert 75405 - Register Application Restart with Windows Restart Manager on b... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/command_line.cc ('k') | chrome/browser/browser_main_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 75409)
+++ chrome/browser/browser_main.cc (working copy)
@@ -136,7 +136,6 @@
#include <windows.h>
#include "app/win/scoped_com_initializer.h"
-#include "base/win/windows_version.h"
#include "chrome/browser/browser_trial.h"
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/net/url_fixer_upper.h"
@@ -1584,16 +1583,6 @@
// testing against a bunch of special cases that are taken care early on.
PrepareRestartOnCrashEnviroment(parsed_command_line);
-#if defined(OS_WIN)
- // Registers Chrome with the Windows Restart Manager, which will restore the
- // Chrome session when the computer is restarted after a system update.
- // This could be run as late as WM_QUERYENDSESSION for system update reboots,
- // but should run on startup if extended to handle crashes/hangs/patches.
- // Also, better to run once here than once for each HWND's WM_QUERYENDSESSION.
- if (base::win::GetVersion() >= base::win::VERSION_VISTA)
- DCHECK(RegisterApplicationRestart(parsed_command_line));
-#endif // OS_WIN
-
// Initialize and maintain network predictor module, which handles DNS
// pre-resolution, as well as TCP/IP connection pre-warming.
// This also registers an observer to discard data when closing incognito
@@ -1616,8 +1605,8 @@
// file thread to be run sometime later. If this is the first run we record
// the installation event.
RLZTracker::InitRlzDelayed(is_first_run, master_prefs.ping_delay);
-#endif // GOOGLE_CHROME_BUILD
-#endif // OS_WIN
+#endif
+#endif
// Configure modules that need access to resources.
net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider);
@@ -1797,8 +1786,8 @@
parameters.ui_task->Run();
delete parameters.ui_task;
} else {
- // We are in regular browser boot sequence. Open initial tabs and enter the
- // main message loop.
+ // We are in regular browser boot sequence. Open initial stabs and enter
+ // the main message loop.
if (browser_init.Start(parsed_command_line, FilePath(), profile,
&result_code)) {
#if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
« no previous file with comments | « base/command_line.cc ('k') | chrome/browser/browser_main_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698