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

Unified Diff: chrome/installer/setup/setup_main.cc

Issue 878002: Modifies the over-install behavior of setup to launch Chrome itself instead o... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/setup_main.cc
===================================================================
--- chrome/installer/setup/setup_main.cc (revision 41327)
+++ chrome/installer/setup/setup_main.cc (working copy)
@@ -13,6 +13,7 @@
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/path_service.h"
+#include "base/process_util.h"
#include "base/registry.h"
#include "base/scoped_handle_win.h"
#include "base/string_util.h"
@@ -176,8 +177,9 @@
chrome_exe = L"\"" + chrome_exe + L"\" --"
+ ASCIIToWide(switches::kFirstRun);
InstallUtil::WriteInstallerResult(system_install, status,
- 0, &chrome_exe);
+ 0, NULL);
LOG(INFO) << "Launching existing system-level chrome instead.";
+ base::LaunchApp(chrome_exe, false, false, NULL);
return false;
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698