Index: chrome/browser/extensions/convert_web_app.cc |
diff --git a/chrome/browser/extensions/convert_web_app.cc b/chrome/browser/extensions/convert_web_app.cc |
index 66fe880573a590d49f69736e22aa2f86c4d35276..ca2d87df19b346dddfcc4252cf0c5ab9c0173329 100644 |
--- a/chrome/browser/extensions/convert_web_app.cc |
+++ b/chrome/browser/extensions/convert_web_app.cc |
@@ -86,6 +86,7 @@ std::string ConvertTimeToExtensionVersion(const Time& create_time) { |
scoped_refptr<Extension> ConvertWebAppToExtension( |
const WebApplicationInfo& web_app, |
const Time& create_time, |
+ int creation_flags, |
const base::FilePath& extensions_dir) { |
base::FilePath install_temp_dir = |
file_util::GetInstallTempDir(extensions_dir); |
@@ -158,11 +159,7 @@ scoped_refptr<Extension> ConvertWebAppToExtension( |
// Finally, create the extension object to represent the unpacked directory. |
std::string error; |
scoped_refptr<Extension> extension = Extension::Create( |
- temp_dir.path(), |
- Manifest::INTERNAL, |
- *root, |
- Extension::FROM_BOOKMARK, |
- &error); |
+ temp_dir.path(), Manifest::INTERNAL, *root, creation_flags, &error); |
if (!extension.get()) { |
LOG(ERROR) << error; |
return NULL; |