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

Side by Side Diff: chrome/installer/setup/setup_main.cc

Issue 10823437: Callback flow to register Chrome and update shortcuts after OS upgrade to Windows 8 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reimplementing registry changes using AppCommand; adding checks in InstallationValidator. Created 8 years, 3 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <windows.h> 5 #include <windows.h>
6 #include <msi.h> 6 #include <msi.h>
7 #include <shellapi.h> 7 #include <shellapi.h>
8 #include <shlobj.h> 8 #include <shlobj.h>
9 9
10 #include "base/at_exit.h" 10 #include "base/at_exit.h"
(...skipping 1208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1219 installer::ChromeFrameReadyModeTempOptOut(original_state, 1219 installer::ChromeFrameReadyModeTempOptOut(original_state,
1220 *installer_state)); 1220 *installer_state));
1221 } else if (cmd_line.HasSwitch( 1221 } else if (cmd_line.HasSwitch(
1222 installer::switches::kChromeFrameReadyModeEndTempOptOut)) { 1222 installer::switches::kChromeFrameReadyModeEndTempOptOut)) {
1223 *exit_code = InstallUtil::GetInstallReturnCode( 1223 *exit_code = InstallUtil::GetInstallReturnCode(
1224 installer::ChromeFrameReadyModeEndTempOptOut(original_state, 1224 installer::ChromeFrameReadyModeEndTempOptOut(original_state,
1225 *installer_state)); 1225 *installer_state));
1226 } else if (cmd_line.HasSwitch(installer::switches::kChromeFrameQuickEnable)) { 1226 } else if (cmd_line.HasSwitch(installer::switches::kChromeFrameQuickEnable)) {
1227 *exit_code = installer::ChromeFrameQuickEnable(original_state, 1227 *exit_code = installer::ChromeFrameQuickEnable(original_state,
1228 installer_state); 1228 installer_state);
1229 } else if (cmd_line.HasSwitch(installer::switches::kOnOsUpgrade)) {
gab 2012/08/28 16:08:19 All the last switches are ChromeFrame related, I f
grt (UTC plus 2) 2012/08/28 19:35:39 i strongly advise against changing the order of th
gab 2012/08/29 03:23:48 No no no! I'm not suggesting to move other calls!
huangs 2012/08/29 17:02:54 Moved (and only moved) my code.
1230 handled = false;
1231 if (cmd_line.HasSwitch(installer::switches::kChrome)) {
grt (UTC plus 2) 2012/08/28 19:35:39 one way to make this more OO would be to add a met
huangs 2012/08/29 17:02:54 Doing this would bring in another 11 files to the
1232 *exit_code = InstallUtil::GetInstallReturnCode(
1233 installer::ChromeBrowserOnOsUpgrade(original_state, *installer_state,
1234 cmd_line));
1235 handled = true;
1236 }
1229 } else { 1237 } else {
1230 handled = false; 1238 handled = false;
1231 } 1239 }
1232 1240
1233 return handled; 1241 return handled;
1234 } 1242 }
1235 1243
1236 bool ShowRebootDialog() { 1244 bool ShowRebootDialog() {
1237 // Get a token for this process. 1245 // Get a token for this process.
1238 HANDLE token; 1246 HANDLE token;
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1499 if (!(installer_state.is_msi() && is_uninstall)) 1507 if (!(installer_state.is_msi() && is_uninstall))
1500 // Note that we allow the status installer::UNINSTALL_REQUIRES_REBOOT 1508 // Note that we allow the status installer::UNINSTALL_REQUIRES_REBOOT
1501 // to pass through, since this is only returned on uninstall which is 1509 // to pass through, since this is only returned on uninstall which is
1502 // never invoked directly by Google Update. 1510 // never invoked directly by Google Update.
1503 return_code = InstallUtil::GetInstallReturnCode(install_status); 1511 return_code = InstallUtil::GetInstallReturnCode(install_status);
1504 1512
1505 VLOG(1) << "Installation complete, returning: " << return_code; 1513 VLOG(1) << "Installation complete, returning: " << return_code;
1506 1514
1507 return return_code; 1515 return return_code;
1508 } 1516 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698