Delay MigrateChromiumShortcuts() task at startup.
BUG=160499
Review URL: https://chromiumcodereview.appspot.com/11299138
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169504 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/shell_integration_win.cc b/chrome/browser/shell_integration_win.cc
index aa45a1c0..2dc1c134 100644
--- a/chrome/browser/shell_integration_win.cc
+++ b/chrome/browser/shell_integration_win.cc
@@ -443,9 +443,14 @@
if (base::win::GetVersion() < base::win::VERSION_WIN7)
return;
- BrowserThread::PostTask(
+ // This needs to happen eventually (e.g. so that the appid is fixed and the
+ // run-time Chrome icon is merged with the taskbar shortcut), but this is not
+ // urgent and shouldn't delay Chrome startup.
+ static const int64 kMigrateChromiumShortcutsDelaySeconds = 15;
+ BrowserThread::PostDelayedTask(
BrowserThread::FILE, FROM_HERE,
- base::Bind(&MigrateChromiumShortcutsCallback));
+ base::Bind(&MigrateChromiumShortcutsCallback),
+ base::TimeDelta::FromSeconds(kMigrateChromiumShortcutsDelaySeconds));
}
FilePath ShellIntegration::GetStartMenuShortcut(const FilePath& chrome_exe) {