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

Unified Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 18153015: Stop creating shortcut for web apps when it is installing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove comment. Created 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/app_list/app_list_view_delegate.cc
diff --git a/chrome/browser/ui/app_list/app_list_view_delegate.cc b/chrome/browser/ui/app_list/app_list_view_delegate.cc
index 7b59b98f77fd6631d34ba5e7c347ada5dfb5f160..ee4769fc650c333695c975dc3b291ad0fd8c40c5 100644
--- a/chrome/browser/ui/app_list/app_list_view_delegate.cc
+++ b/chrome/browser/ui/app_list/app_list_view_delegate.cc
@@ -102,7 +102,10 @@ void AppListViewDelegate::GetShortcutPathForApp(
DCHECK(service);
const extensions::Extension* extension =
service->GetInstalledExtension(app_id);
- DCHECK(extension);
+ if (!extension) {
+ callback.Run(base::FilePath());
+ return;
+ }
base::FilePath app_data_dir(
web_app::GetWebAppDataDirectory(profile_->GetPath(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698