Index: chrome/browser/browser_init.cc |
=================================================================== |
--- chrome/browser/browser_init.cc (revision 39907) |
+++ chrome/browser/browser_init.cc (working copy) |
@@ -40,6 +40,7 @@ |
#include "chrome/common/pref_names.h" |
#include "chrome/common/result_codes.h" |
#include "chrome/common/url_constants.h" |
+#include "chrome/installer/util/browser_distribution.h" |
#include "grit/chromium_strings.h" |
#include "grit/generated_resources.h" |
#include "grit/locale_settings.h" |
@@ -193,6 +194,10 @@ |
virtual void Run() { |
if (ShellIntegration::IsDefaultBrowser()) |
return; |
+#if defined(OS_WIN) |
+ if (!BrowserDistribution::GetDistribution()->CanSetAsDefault()) |
+ return; |
mattm
2010/02/26 23:53:50
could do this check before the IsDefaultBrowser ca
huanr
2010/02/27 00:02:34
However we should optimize for the more common cas
|
+#endif |
ChromeThread::PostTask( |
ChromeThread::UI, FROM_HERE, new NotifyNotDefaultBrowserTask()); |