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

Unified 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, 4 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
Index: chrome/installer/setup/setup_main.cc
diff --git a/chrome/installer/setup/setup_main.cc b/chrome/installer/setup/setup_main.cc
index 139b8274e9eb5c81aba8e38593fc0d1b12a05436..0bba37f42be504e2fc7c5af312fe60bd381e9cc6 100644
--- a/chrome/installer/setup/setup_main.cc
+++ b/chrome/installer/setup/setup_main.cc
@@ -1226,6 +1226,14 @@ bool HandleNonInstallCmdLineOptions(const InstallationState& original_state,
} else if (cmd_line.HasSwitch(installer::switches::kChromeFrameQuickEnable)) {
*exit_code = installer::ChromeFrameQuickEnable(original_state,
installer_state);
+ } 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.
+ handled = false;
+ 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
+ *exit_code = InstallUtil::GetInstallReturnCode(
+ installer::ChromeBrowserOnOsUpgrade(original_state, *installer_state,
+ cmd_line));
+ handled = true;
+ }
} else {
handled = false;
}

Powered by Google App Engine
This is Rietveld 408576698