Index: chrome/browser/sync/glue/theme_util.cc |
diff --git a/chrome/browser/sync/glue/theme_util.cc b/chrome/browser/sync/glue/theme_util.cc |
index 4ea65a40fb1791e7a11e558ad57c61c86de330d4..1bd078e609f15a6fff9a547729b936e53ca8e4e4 100644 |
--- a/chrome/browser/sync/glue/theme_util.cc |
+++ b/chrome/browser/sync/glue/theme_util.cc |
@@ -127,15 +127,16 @@ void SetCurrentThemeFromThemeSpecifics( |
// No extension with this id exists -- we must install it; we do |
// so by adding it as a pending extension and then triggering an |
// auto-update cycle. |
- scoped_ptr<Version> version(Version::GetVersionFromString("0.0.0.0")); |
- DCHECK(version.get()); |
const bool kIsTheme = true; |
// Themes don't need to install silently as they just pop up an |
// informational dialog after installation instead of a |
// confirmation dialog. |
const bool kInstallSilently = false; |
- extensions_service->AddPendingExtension(id, update_url, *version, |
- kIsTheme, kInstallSilently); |
+ const bool kEnableOnInstall = true; |
+ const bool kEnableIncognitoOnInstall = false; |
+ extensions_service->AddPendingExtension( |
+ id, update_url, kIsTheme, kInstallSilently, |
+ kEnableOnInstall, kEnableIncognitoOnInstall); |
ExtensionUpdater* extension_updater = extensions_service->updater(); |
// Auto-updates should now be on always (see the construction of |
// the ExtensionsService in ProfileImpl::InitExtensions()). |