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

Unified Diff: chrome/browser/extensions/bookmark_app_helper.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/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);
}

Powered by Google App Engine
This is Rietveld 408576698