Index: chrome/browser/extensions/bookmark_app_helper.cc |
diff --git a/chrome/browser/extensions/bookmark_app_helper.cc b/chrome/browser/extensions/bookmark_app_helper.cc |
index bd5e2dff072334ad86b0a59239ca61adb3e431b2..2033c7d5e1b34dd64f2e89c3e2eeb93c602ee9eb 100644 |
--- a/chrome/browser/extensions/bookmark_app_helper.cc |
+++ b/chrome/browser/extensions/bookmark_app_helper.cc |
@@ -181,6 +181,7 @@ BookmarkAppHelper::BookmarkAppHelper(ExtensionService* service, |
chrome::NOTIFICATION_EXTENSION_INSTALL_ERROR, |
content::Source<CrxInstaller>(crx_installer_.get())); |
+ crx_installer_->set_creation_flags(Extension::FROM_BOOKMARK); |
crx_installer_->set_error_on_unsupported_requirements(true); |
if (!contents) |
@@ -352,6 +353,7 @@ void CreateOrUpdateBookmarkApp(ExtensionService* service, |
WebApplicationInfo& web_app_info) { |
scoped_refptr<extensions::CrxInstaller> installer( |
extensions::CrxInstaller::CreateSilent(service)); |
+ installer->set_creation_flags(Extension::FROM_BOOKMARK); |
installer->set_error_on_unsupported_requirements(true); |
installer->InstallWebApp(web_app_info); |
} |