Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1351)

Unified Diff: chrome/browser/extensions/convert_web_app.cc

Issue 308003005: app_list: Drive app integration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: for comemnts in #5 Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698