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

Unified Diff: chrome/installer/setup/install.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: Renaming kRegAutoRunOnOSUpgrade to kRegAutoRunOnOSUpgradeField; deleting bad debug message. 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
« no previous file with comments | « chrome/installer/setup/install.h ('k') | chrome/installer/setup/install_worker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/setup/install.cc
diff --git a/chrome/installer/setup/install.cc b/chrome/installer/setup/install.cc
index bd7ab6ff49ef95e607eb51f31d95e09e4a8cae39..05efc3c7c7f792a5808ab190cdb4f8e7ae76c0f0 100644
--- a/chrome/installer/setup/install.cc
+++ b/chrome/installer/setup/install.cc
@@ -552,4 +552,21 @@ InstallStatus InstallOrUpdateProduct(
return result;
}
+void HandleOsUpgradeForBrowser(const InstallerState& installer_state,
+ const Product& chrome,
+ const FilePath& setup_exe) {
+ DCHECK(chrome.is_chrome());
+ // Upon upgrading to Windows 8, we need to fix Chrome shortcuts and register
+ // Chrome, so that Metro Chrome would work if Chrome is the default browser.
+ if (base::win::GetVersion() >= base::win::VERSION_WIN8) {
+ VLOG(1) << "Updating and registering shortcuts.";
+ uint32 shortcut_options = ShellUtil::SHORTCUT_DUAL_MODE;
+ CreateOrUpdateDesktopAndQuickLaunchShortcuts(
+ installer_state, chrome, shortcut_options);
+ CreateOrUpdateStartMenuAndTaskbarShortcuts(
+ installer_state, setup_exe, chrome, shortcut_options);
+ RegisterChromeOnMachine(installer_state, chrome, false);
+ }
+}
+
} // namespace installer
« no previous file with comments | « chrome/installer/setup/install.h ('k') | chrome/installer/setup/install_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698