Index: chrome/browser/extensions/installed_loader.cc |
diff --git a/chrome/browser/extensions/installed_loader.cc b/chrome/browser/extensions/installed_loader.cc |
index c8887ade53a1ca0a62bb3e3237c4755f67f86583..daa77b66e232925b7e487f1d4f01aad3449fc35b 100644 |
--- a/chrome/browser/extensions/installed_loader.cc |
+++ b/chrome/browser/extensions/installed_loader.cc |
@@ -148,12 +148,17 @@ void InstalledLoader::Load(const ExtensionInfo& info, bool write_to_prefs) { |
std::string error; |
scoped_refptr<const Extension> extension(NULL); |
if (info.extension_manifest) { |
- extension = Extension::Create( |
+ scoped_refptr<Extension> mutable_extension = Extension::Create( |
info.extension_path, |
info.extension_location, |
*info.extension_manifest, |
GetCreationFlags(&info), |
&error); |
+ if (mutable_extension) { |
+ mutable_extension->set_is_syncable( |
+ extension_prefs_->IsSyncable(mutable_extension->id())); |
+ extension = mutable_extension; |
+ } |
} else { |
error = errors::kManifestUnreadable; |
} |